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.

Reply via email to