/cp
commitb5c6dd8a8b976feaabbdcf5777b06389cee74373
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Sep 2014 15:38:38 +0000 (2 15:38 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Sep 2014 15:38:38 +0000 (2 15:38 +0000)
treedf50e30837aebdb34f1d08244a305e8c27331c26
parent023cabf82b771650129be71914e98d919434f7c8
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214823 138bc75d-0d04-0410-961f-82ee72b054a4
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]