Commit 780f08bc by Paolo Carlini Committed by Paolo Carlini

re PR c++/55558 ([C++11] decltype on a static member variable in a template…

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
parent 198e7e8b
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
......
// PR c++/55558
// { dg-do compile { target c++11 } }
struct A
{
static int member;
};
template<typename T> void foobar ()
{
typedef decltype (A::member) myType;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment