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++/65327] GCC rejects "constexpr volatile int i = 5;"


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

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Mar 16 18:30:49 2015
New Revision: 221463

URL: https://gcc.gnu.org/viewcvs?rev=221463&root=gcc&view=rev
Log:
    DR 1688
    PR c++/65327
    * decl.c (grokdeclarator): Allow volatile and constexpr together.

    * g++.dg/cpp0x/constexpr-object1.C: Change dg-error to dg-bogus.
    * g++.dg/cpp0x/pr65327.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/pr65327.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-object1.C


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