[Bug c++/65707] internal compiler error: in unify, at cp/pt.c:18577

2021-12-03 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65707

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |9.2

[Bug c++/65707] internal compiler error: in unify, at cp/pt.c:18577

2019-06-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65707

Marek Polacek  changed:

   What|Removed |Added

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

--- Comment #6 from Marek Polacek  ---
Fixed by r272571.  Test added.

[Bug c++/65707] internal compiler error: in unify, at cp/pt.c:18577

2019-06-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65707

--- Comment #5 from Marek Polacek  ---
Author: mpolacek
Date: Sat Jun 22 16:29:06 2019
New Revision: 272589

URL: https://gcc.gnu.org/viewcvs?rev=272589=gcc=rev
Log:
PR c++/65707
PR c++/89480
PR c++/58836
* g++.dg/cpp0x/nondeduced5.C: New test.
* g++.dg/cpp0x/nondeduced6.C: New test.
* g++.dg/cpp0x/nondeduced7.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/cpp0x/nondeduced5.C
trunk/gcc/testsuite/g++.dg/cpp0x/nondeduced6.C
trunk/gcc/testsuite/g++.dg/cpp0x/nondeduced7.C
Modified:
trunk/gcc/testsuite/ChangeLog

[Bug c++/65707] internal compiler error: in unify, at cp/pt.c:18577

2019-06-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65707

Marek Polacek  changed:

   What|Removed |Added

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

--- Comment #4 from Marek Polacek  ---
The patch I posted today fixes this:


[Bug c++/65707] internal compiler error: in unify, at cp/pt.c:18577

2019-06-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65707

--- Comment #3 from Marek Polacek  ---
Still ICEs with gcc version 10.0.0 20190608 (experimental) (GCC)

$ xg++ -c 65707.C
65707.C:16:17: internal compiler error: in unify, at cp/pt.c:22784
   16 | template struct f;
  | ^~
0xaed4cb unify
/home/mpolacek/src/gcc/gcc/cp/pt.c:22784
0xaeb981 unify
/home/mpolacek/src/gcc/gcc/cp/pt.c:22548
0xaec322 unify
/home/mpolacek/src/gcc/gcc/cp/pt.c:22626
0xaeb981 unify
/home/mpolacek/src/gcc/gcc/cp/pt.c:22548
0xaef9a8 get_partial_spec_bindings
/home/mpolacek/src/gcc/gcc/cp/pt.c:23361
0xaf097b most_specialized_partial_spec
/home/mpolacek/src/gcc/gcc/cp/pt.c:23637
0xab0f0f instantiate_class_template_1
/home/mpolacek/src/gcc/gcc/cp/pt.c:10998
0xab429e instantiate_class_template(tree_node*)
/home/mpolacek/src/gcc/gcc/cp/pt.c:11534
0xb8037a complete_type(tree_node*)
/home/mpolacek/src/gcc/gcc/cp/typeck.c:139
0xaf1b35 do_type_instantiation(tree_node*, tree_node*, int)
/home/mpolacek/src/gcc/gcc/cp/pt.c:23904
0xa3a90f cp_parser_explicit_instantiation
/home/mpolacek/src/gcc/gcc/cp/parser.c:17187
0xa338a2 cp_parser_declaration
/home/mpolacek/src/gcc/gcc/cp/parser.c:13174
0xa33b99 cp_parser_toplevel_declaration
/home/mpolacek/src/gcc/gcc/cp/parser.c:13251
0xa20f8f cp_parser_translation_unit
/home/mpolacek/src/gcc/gcc/cp/parser.c:4690
0xa77e7b c_parse_file()
/home/mpolacek/src/gcc/gcc/cp/parser.c:41176
0xc341e2 c_common_parse_file()
/home/mpolacek/src/gcc/gcc/c-family/c-opts.c:1156
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++/65707] internal compiler error: in unify, at cp/pt.c:18577

2016-01-24 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65707

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||ice-on-valid-code
   Last reconfirmed|2015-04-09 00:00:00 |2016-1-24

--- Comment #2 from Andrew Pinski  ---
Changing:
always_true{}
to 
always_true::value

Allows it to compile.

That is the conversion operator is causing the ICE.

[Bug c++/65707] internal compiler error: in unify, at cp/pt.c:18577

2015-04-09 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65707

Marek Polacek mpolacek at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-04-09
 CC||mpolacek at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Marek Polacek mpolacek at gcc dot gnu.org ---
Confirmed, goes back to at least 4.6.
PR54090 and PR59759 are similar.