This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/72775] internal compiler error: in finish_expr_stmt, at cp/semantics.c:677
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 02 Aug 2016 13:29:36 +0000
- Subject: [Bug c++/72775] internal compiler error: in finish_expr_stmt, at cp/semantics.c:677
- Auto-submitted: auto-generated
- References: <bug-72775-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72775
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |6.3
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
GCC 5 rejects the code:
q.cc:3:14: error: initializer-string for array of chars is too long
[-fpermissive]
char a[] = "foo";
^
q.cc: In constructor ‘S::S()’:
q.cc:4:8: error: initializer-string for array of chars is too long
[-fpermissive]
S () {}
^
GCC 6 and trunk ICE. But before r233183 this code compiled fine.