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++/55931] [C++11] Constexpr member function inside a static member is not working


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55931

Daniel KrÃgler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler at
                   |                            |googlemail dot com

--- Comment #2 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> 2013-01-11 13:22:13 UTC ---
When using gcc 4.8.0 20130106 (experimental)

with flags

-Wall -std=c++11 -pedantic

I get an internal compiler error for the line:

static constexpr Test<int> x(42);

"12|internal compiler error: tree check: expected target_expr, have cast_expr
in check_initializer, at cp/decl.c:5699"

Should this be reported separately?


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