From: Paolo Carlini Date: Sat, 1 Dec 2012 22:52:27 +0000 (+0000) Subject: re PR c++/55558 ([C++11] decltype on a static member variable in a template function... X-Git-Tag: releases/gcc-4.8.0~1649 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=780f08bc4a0621034772ef0cf067b685a8b49ac4;p=thirdparty%2Fgcc.git re PR c++/55558 ([C++11] decltype on a static member variable in a template function results in an internal compiler error) 2012-12-01 Paolo Carlini PR c++/55558 * g++.dg/cpp0x/decltype46.C: New. From-SVN: r194036 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a1686a6674a3..40ba775c84e7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-12-01 Paolo Carlini + + PR c++/55558 + * g++.dg/cpp0x/decltype46.C: New. + 2012-12-01 John David Anglin PR middle-end/52450 diff --git a/gcc/testsuite/g++.dg/cpp0x/decltype46.C b/gcc/testsuite/g++.dg/cpp0x/decltype46.C new file mode 100644 index 000000000000..f18354dfa8ea --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/decltype46.C @@ -0,0 +1,12 @@ +// PR c++/55558 +// { dg-do compile { target c++11 } } + +struct A +{ + static int member; +}; + +template void foobar () +{ + typedef decltype (A::member) myType; +}