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  <paolo.carlini@oracle.com>

	PR c++/55558
	* g++.dg/cpp0x/decltype46.C: New.

From-SVN: r194036
This commit is contained in:
Paolo Carlini 2012-12-01 22:52:27 +00:00 committed by Paolo Carlini
parent 198e7e8bde
commit 780f08bc4a
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-12-01 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/55558
* g++.dg/cpp0x/decltype46.C: New.
2012-12-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR middle-end/52450

View File

@ -0,0 +1,12 @@
// PR c++/55558
// { dg-do compile { target c++11 } }
struct A
{
static int member;
};
template<typename T> void foobar ()
{
typedef decltype (A::member) myType;
}