diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c00557ece63..065b5a33213 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-05-24 Paolo Carlini + + PR c++/53464 + * g++.dg/cpp0x/constexpr-default1.C: New. + 2012-05-24 Paolo Carlini PR c++/32080 diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-default1.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-default1.C new file mode 100644 index 00000000000..68d50b61b12 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-default1.C @@ -0,0 +1,22 @@ +// PR c++/53464 +// { dg-do compile { target c++11 } } + +template +struct bar +{ + static constexpr int get() + { + return value; + } +}; + +template +struct foo +{ +}; + +int main() +{ + typedef foo> type; + return 0; +}