[Bug c++/55558] [C++11] decltype on a static member variable in a template function results in an internal compiler error

2012-12-01 Thread devkid at gmx dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8 --- Comment #2 from Alfred Krohmer 2012-12-01 21:18:00 UTC --- Well, this is awkward, not even a template class is needed, the following code also produces the bug: struct A { static int member; }; template void foobar () {

[Bug c++/55558] [C++11] decltype on a static member variable in a template function results in an internal compiler error

2012-12-01 Thread devkid at gmx dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8 --- Comment #1 from Alfred Krohmer 2012-12-01 20:57:57 UTC --- Just figured out that the class does not need to be specialized in order to reproduce the bug, so the member variable could also be declared in the unspecialized class.

[Bug c++/55558] New: [C++11] decltype on a static member variable of a specialized class in a template function results in an internal compiler error

2012-12-01 Thread devkid at gmx dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8 Bug #: 8 Summary: [C++11] decltype on a static member variable of a specialized class in a template function results in an internal compiler error Classification: Uncla