[Bug c++/85101] C++17 ICE in build_over_call, at cp/call.c:8149

2018-04-03 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85101
Bug 85101 depends on bug 85092, which changed state.

Bug 85092 Summary: [8 Regression] ICE under -std=gnu++1z in build_over_call 
under, at cp/call.c:8149
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85092

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

[Bug c++/85101] C++17 ICE in build_over_call, at cp/call.c:8149

2018-04-03 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85101

Jason Merrill  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #6 from Jason Merrill  ---
Yes, dup.

*** This bug has been marked as a duplicate of bug 85092 ***

[Bug c++/85101] C++17 ICE in build_over_call, at cp/call.c:8149

2018-04-03 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85101

Jason Merrill  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||jason at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |jason at gcc dot gnu.org

[Bug c++/85101] C++17 ICE in build_over_call, at cp/call.c:8149

2018-03-30 Thread aoliva at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85101

Alexandre Oliva  changed:

   What|Removed |Added

 CC||aoliva at gcc dot gnu.org

--- Comment #5 from Alexandre Oliva  ---
bisect took me to revision 258755
that was the patch for bug 81311

[Bug c++/85101] C++17 ICE in build_over_call, at cp/call.c:8149

2018-03-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85101

--- Comment #4 from Martin Sebor  ---
The ICE is due to the assertion below failing.

  /* In C++17 we shouldn't be copying a TARGET_EXPR except into a base
 subobject.  */
  if (CHECKING_P && cxx_dialect >= cxx17)
gcc_assert (TREE_CODE (arg) != TARGET_EXPR
|| force_elide
/* It's from binding the ref parm to a packed field. */
|| convs[0]->need_temporary_p
|| seen_error ()
/* See unsafe_copy_elision_p.  */
|| DECL_BASE_CONSTRUCTOR_P (fn));

[Bug c++/85101] C++17 ICE in build_over_call, at cp/call.c:8149

2018-03-28 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85101

Martin Sebor  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-03-28
 CC||msebor at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #3 from Martin Sebor  ---
Confirmed with the reduced test case below:

$ cat pr85101.ii && gcc -O2 -S -Wall -std=c++17 pr85101.ii
namespace std {

template 
struct initializer_list {
  const T *a;
  unsigned long n;
};

}

struct A
{
  A (std::initializer_list);
};

A f ();

A a { f () };
pr85101.ii:18:12: internal compiler error: in build_over_call, at
cp/call.c:8149
 A a { f () };
^
0x80e3f9 build_over_call
/ssd/src/gcc/svn/gcc/cp/call.c:8143
0x814701 build_new_method_call_1
/ssd/src/gcc/svn/gcc/cp/call.c:9363
0x814ce3 build_new_method_call(tree_node*, tree_node*, vec**, tree_node*, int, tree_node**, int)
/ssd/src/gcc/svn/gcc/cp/call.c:9439
0x811dc8 build_special_member_call(tree_node*, tree_node*, vec**, tree_node*, int, int)
/ssd/src/gcc/svn/gcc/cp/call.c:8969
0x93da7f expand_default_init
/ssd/src/gcc/svn/gcc/cp/init.c:1888
0x93e0e7 expand_aggr_init_1
/ssd/src/gcc/svn/gcc/cp/init.c:2002
0x93ccf8 build_aggr_init(tree_node*, tree_node*, int, int)
/ssd/src/gcc/svn/gcc/cp/init.c:1743
0x8c9e67 build_aggr_init_full_exprs
/ssd/src/gcc/svn/gcc/cp/decl.c:6273
0x8cad62 check_initializer
/ssd/src/gcc/svn/gcc/cp/decl.c:6422
0x8ce90b cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
/ssd/src/gcc/svn/gcc/cp/decl.c:7127
0x9d1fb7 cp_parser_init_declarator
/ssd/src/gcc/svn/gcc/cp/parser.c:19749
0x9c522a cp_parser_simple_declaration
/ssd/src/gcc/svn/gcc/cp/parser.c:13067
0x9c4d8e cp_parser_block_declaration
/ssd/src/gcc/svn/gcc/cp/parser.c:12885
0x9c4b01 cp_parser_declaration
/ssd/src/gcc/svn/gcc/cp/parser.c:12782
0x9c4649 cp_parser_declaration_seq_opt
/ssd/src/gcc/svn/gcc/cp/parser.c:12658
0x9b25c4 cp_parser_translation_unit
/ssd/src/gcc/svn/gcc/cp/parser.c:4563
0xa06eef c_parse_file()
/ssd/src/gcc/svn/gcc/cp/parser.c:39024
0xbb02e6 c_common_parse_file()
/ssd/src/gcc/svn/gcc/c-family/c-opts.c:1132
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.

[Bug c++/85101] C++17 ICE in build_over_call, at cp/call.c:8149

2018-03-28 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85101

Richard Biener  changed:

   What|Removed |Added

 Depends on||85092

--- Comment #2 from Richard Biener  ---
Dup of PR85092 (with a smaller testcase?)


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85092
[Bug 85092] [8 Regression] ICE under -std=gnu++1z in build_over_call under, at
cp/call.c:8149

[Bug c++/85101] C++17 ICE in build_over_call, at cp/call.c:8149

2018-03-27 Thread proski at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85101

--- Comment #1 from Pavel Roskin  ---
Created attachment 43779
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43779=edit
Preprocessed source