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++/70167] Some const array prvalues are incorrectly treated as lvalues


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70167

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Created attachment 41206
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41206&action=edit
partial fix

The issue is that we've been treating T{} the same as C99 compound literals,
which is a problem for this case.  Here's most of a fix; there's still one
library testsuite regression.  I'll come back to this after GCC 7.

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