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++/72775] internal compiler error: in finish_expr_stmt, at cp/semantics.c:677


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.

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