This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61370] decltype, enable_if, previous arguments
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 30 May 2014 19:47:08 +0000
- Subject: [Bug c++/61370] decltype, enable_if, previous arguments
- Auto-submitted: auto-generated
- References: <bug-61370-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61370
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-05-30
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
That code causes an ICE on trunk:
/var/tmp/bug_report.cpp:39:60: internal compiler error: canonical types differ
for identical types eif<same<decltype (a), int&&>::value> and eif<same<decltype
(a), int&&>::value>
typename eif<same<decltype(a), int&&>::value>::type * )
^
0x699b99 comptypes
/home/jwakely/src/gcc/gcc/gcc/cp/typeck.c:1403
0x6980cd structural_comptypes
/home/jwakely/src/gcc/gcc/gcc/cp/typeck.c:1319
0x697bbc structural_comptypes
/home/jwakely/src/gcc/gcc/gcc/cp/typeck.c:1337
0x69d243 compparms(tree_node const*, tree_node const*)
/home/jwakely/src/gcc/gcc/gcc/cp/typeck.c:1514
0x63331a check_classfn(tree_node*, tree_node*, tree_node*)
/home/jwakely/src/gcc/gcc/gcc/cp/decl2.c:705
0x4fccc0 grokfndecl
/home/jwakely/src/gcc/gcc/gcc/cp/decl.c:7810
0x59a012 grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*,
decl_context, int, tree_node**)
/home/jwakely/src/gcc/gcc/gcc/cp/decl.c:10823
0x59ae36 start_function(cp_decl_specifier_seq*, cp_declarator const*,
tree_node*)
/home/jwakely/src/gcc/gcc/gcc/cp/decl.c:13519
0x67f46f cp_parser_function_definition_from_specifiers_and_declarator
/home/jwakely/src/gcc/gcc/gcc/cp/parser.c:22802
0x67f46f cp_parser_init_declarator
/home/jwakely/src/gcc/gcc/gcc/cp/parser.c:16646
0x681044 cp_parser_single_declaration
/home/jwakely/src/gcc/gcc/gcc/cp/parser.c:23254
0x6823a0 cp_parser_template_declaration_after_export
/home/jwakely/src/gcc/gcc/gcc/cp/parser.c:23056
0x68cdf9 cp_parser_declaration
/home/jwakely/src/gcc/gcc/gcc/cp/parser.c:10991
0x68b98d cp_parser_declaration_seq_opt
/home/jwakely/src/gcc/gcc/gcc/cp/parser.c:10913
0x68d1f3 cp_parser_translation_unit
/home/jwakely/src/gcc/gcc/gcc/cp/parser.c:4040
0x68d1f3 c_parse_file()
/home/jwakely/src/gcc/gcc/gcc/cp/parser.c:31698
0x7b8164 c_common_parse_file()
/home/jwakely/src/gcc/gcc/gcc/c-family/c-opts.c:1067