[Bug c++/54946] ICE on template parameter from cast char-pointer in C++11 constexpr struct

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Wed Oct 17 19:36:00 GMT 2012


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

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> 2012-10-17 19:36:14 UTC ---
The ICE still occurs in gcc 4.8.0 20121014 (experimental) with the message:

"internal compiler error: in convert_nontype_argument, at cp/pt.c:5533"

Let me add that your example is not valid C++11 (irrespective of typo or the
cast), because it doesn't satisfy the valid forms.

"a constant expression (5.19) that designates the address of an object with
static storage duration and external or internal linkage [..], expressed
(ignoring parentheses) as &id-expression [..]"



More information about the Gcc-bugs mailing list