re PR c++/48771 ([C++0x] is_literal_type incorrect for references to non-literal...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 28 Apr 2011 09:21:23 +0000 (09:21 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 28 Apr 2011 09:21:23 +0000 (09:21 +0000)
commit83b6b866e6860bb7555d91c1f05f9215f15a60f0
treeb445fe20c14867fb8e479fb47f81ec43981c9619
parent8576f20aedfbbdc1b82ce89be28fbf4a14d9a857
re PR c++/48771 ([C++0x] is_literal_type incorrect for references to non-literal types)

/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.

From-SVN: r173062
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/is_literal_type1.C [new file with mode: 0644]