DR 1453
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 2 Sep 2014 15:38:38 +0000 (15:38 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 2 Sep 2014 15:38:38 +0000 (15:38 +0000)
commitcec362c90b53bec41a0571220216401978b3a6ad
treedf50e30837aebdb34f1d08244a305e8c27331c26
parent4e2b2eeec93479e9a6ecde090e7b748fabcae107
DR 1453

/cp
2014-09-02  Paolo Carlini  <paolo.carlini@oracle.com>

DR 1453
* class.c (check_field_decls): A class of literal type cannot have
volatile non-static data members and base classes.
(explain_non_literal_class): Update.

/testsuite
2014-09-02  Paolo Carlini  <paolo.carlini@oracle.com>

DR 1453
* g++.dg/cpp0x/constexpr-volatile.C: New.
* g++.dg/ext/is_literal_type2.C: Likewise.

From-SVN: r214823
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-volatile.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/is_literal_type2.C [new file with mode: 0644]