This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55558] [C++11] decltype on a static member variable in a template function results in an internal compiler error
- From: "devkid at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 01 Dec 2012 21:18:00 +0000
- Subject: [Bug c++/55558] [C++11] decltype on a static member variable in a template function results in an internal compiler error
- Auto-submitted: auto-generated
- References: <bug-55558-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55558
--- Comment #2 from Alfred Krohmer <devkid at gmx dot net> 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<typename T> void foobar ()
{
typedef decltype (A::member) myType;
}