This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70167] Some const array prvalues are incorrectly treated as lvalues
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Apr 2017 18:42:17 +0000
- Subject: [Bug c++/70167] Some const array prvalues are incorrectly treated as lvalues
- Auto-submitted: auto-generated
- References: <bug-70167-4@http.gcc.gnu.org/bugzilla/>
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.