/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Apr 2011 09:21:23 +0000 (09:21 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Apr 2011 09:21:23 +0000 (09:21 +0000)
commite1b036be76976158e93113ea0b3652ab4588b254
treeb445fe20c14867fb8e479fb47f81ec43981c9619
parentbbe0034f1fb16f83a755eac778d7e6062aca5fa7
/cp
2011-04-28  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/48771
* semantics.c (literal_type_p): Reference types are literal types,
per the FDIS.
(valid_type_in_constexpr_fundecl_p): Remove.
(is_valid_constexpr_fn): Adjust.

/testsuite
2011-04-28  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/48771
* g++.dg/ext/is_literal_type1.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173062 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/is_literal_type1.C [new file with mode: 0644]