re PR c++/47199 ([C++0x] ICE: expected class 'type', have 'declaration' (function_dec...
authorJason Merrill <jason@redhat.com>
Mon, 21 Feb 2011 05:25:56 +0000 (00:25 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 21 Feb 2011 05:25:56 +0000 (00:25 -0500)
commitc62f4cd9cf70644b7708f5f4eedbfff4c5aa48e2
treee7448591e02fe6326bc0006c86df5145e9c00882
parenta3dbf764ae79f617b1710dbffd7698057d98c5f9
re PR c++/47199 ([C++0x] ICE: expected class 'type', have 'declaration' (function_decl) in same_type_ignoring_top_level_qualifiers_p, at cp/typeck.c:1407 with -fno-elide-constructors)

PR c++/47199
* semantics.c (cxx_eval_call_expression): Call
cxx_eval_constant_expression in trivial shortcut.

From-SVN: r170356
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-ctor7.C [new file with mode: 0644]