This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47199] [4.6 Regression] [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
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 Feb 2011 05:26:18 +0000
- Subject: [Bug c++/47199] [4.6 Regression] [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
- Auto-submitted: auto-generated
- References: <bug-47199-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47199
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-02-21 05:26:01 UTC ---
Author: jason
Date: Mon Feb 21 05:25:56 2011
New Revision: 170356
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170356
Log:
PR c++/47199
* semantics.c (cxx_eval_call_expression): Call
cxx_eval_constant_expression in trivial shortcut.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-ctor7.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog