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++/65398] [5 Regression] [C++11] GCC rejects constexpr variable definitions with valid initialization


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.


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