This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/65398] [5 Regression] [C++11] GCC rejects constexpr variable definitions with valid initialization
- 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: Sun, 29 Mar 2015 17:46:36 +0000
- Subject: [Bug c++/65398] [5 Regression] [C++11] GCC rejects constexpr variable definitions with valid initialization
- Auto-submitted: auto-generated
- References: <bug-65398-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65398
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |jason at gcc dot gnu.org
Resolution|FIXED |---
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Another testcase, derived from one attached to bug 65509:
char s[] = "s";
#define SA(X) static_assert((X),#X);
SA((&s[0] + 0) != (&s[0] + 1));
here we aren't indirecting the addresses, so I think cxx_fold_indirect_ref
isn't the right place for the fix.