This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]