[Bug c++/68451] internal compiler error: Segmentation fault when using decltype with friend inside a class template

2020-12-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68451

Marek Polacek  changed:

   What|Removed |Added

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

--- Comment #5 from Marek Polacek  ---
Fixed.

[Bug c++/68451] internal compiler error: Segmentation fault when using decltype with friend inside a class template

2020-12-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68451

--- Comment #4 from CVS Commits  ---
The master branch has been updated by Marek Polacek :

https://gcc.gnu.org/g:e271cd0234d5db2f95c35454b8b29b6e8386caa8

commit r11-5912-ge271cd0234d5db2f95c35454b8b29b6e8386caa8
Author: Marek Polacek 
Date:   Thu Dec 10 09:56:40 2020 -0500

c++: Add fixed test [PR68451]

I was about to add this test with dg-ice but it turned out it had
already been fixed by the recent r11-3361!

gcc/testsuite/ChangeLog:

PR c++/68451
* g++.dg/cpp0x/friend6.C: New test.

[Bug c++/68451] internal compiler error: Segmentation fault when using decltype with friend inside a class template

2020-12-10 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68451

Marek Polacek  changed:

   What|Removed |Added

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

--- Comment #3 from Marek Polacek  ---
Woo, this was recently fixed by r11-3361.

[Bug c++/68451] internal compiler error: Segmentation fault when using decltype with friend inside a class template

2020-02-05 Thread tim.pavlic at minelab dot com.au
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68451

--- Comment #2 from Tim  ---
Still ICEs on 9.2

[Bug c++/68451] internal compiler error: Segmentation fault when using decltype with friend inside a class template

2018-03-07 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68451

Marek Polacek  changed:

   What|Removed |Added

 CC||mpolacek at gcc dot gnu.org

--- Comment #1 from Marek Polacek  ---
Still ICEs:

$ ./cc1plus -quiet 68451.C
68451.C: In instantiation of ‘struct C’:
68451.C:21:12:   required from here
68451.C:12:7: internal compiler error: Segmentation fault
 A a;
   ^
0x1230d5b crash_signal
/home/marek/src/gcc/gcc/toplev.c:325
0xa2c870 instantiate_class_template_1
/home/marek/src/gcc/gcc/cp/pt.c:10926
0xa2cd6b instantiate_class_template(tree_node*)
/home/marek/src/gcc/gcc/cp/pt.c:11055
0xae51f4 complete_type(tree_node*)
/home/marek/src/gcc/gcc/cp/typeck.c:136
0x8c5cf7 start_decl_1(tree_node*, bool)
/home/marek/src/gcc/gcc/cp/decl.c:5241
0x8c5af9 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int,
tree_node*, tree_node*, tree_node**)
/home/marek/src/gcc/gcc/cp/decl.c:5204
0x9c0aa6 cp_parser_init_declarator
/home/marek/src/gcc/gcc/cp/parser.c:19598
0x9b4527 cp_parser_simple_declaration
/home/marek/src/gcc/gcc/cp/parser.c:13057
0x9b4090 cp_parser_block_declaration
/home/marek/src/gcc/gcc/cp/parser.c:12882
0x9b3480 cp_parser_declaration_statement
/home/marek/src/gcc/gcc/cp/parser.c:12476
0x9af7d6 cp_parser_statement
/home/marek/src/gcc/gcc/cp/parser.c:10925
0x9b0565 cp_parser_statement_seq_opt
/home/marek/src/gcc/gcc/cp/parser.c:11274
0x9b045b cp_parser_compound_statement
/home/marek/src/gcc/gcc/cp/parser.c:11228
0x9c4e18 cp_parser_function_body
/home/marek/src/gcc/gcc/cp/parser.c:21776
0x9c50db cp_parser_ctor_initializer_opt_and_function_body
/home/marek/src/gcc/gcc/cp/parser.c:21813
0x9ced83 cp_parser_function_definition_after_declarator
/home/marek/src/gcc/gcc/cp/parser.c:26818
0x9ceba9 cp_parser_function_definition_from_specifiers_and_declarator
/home/marek/src/gcc/gcc/cp/parser.c:26734
0x9c07c8 cp_parser_init_declarator
/home/marek/src/gcc/gcc/cp/parser.c:19502
0x9b4527 cp_parser_simple_declaration
/home/marek/src/gcc/gcc/cp/parser.c:13057
0x9b4090 cp_parser_block_declaration
/home/marek/src/gcc/gcc/cp/parser.c:12882
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++/68451] internal compiler error: Segmentation fault when using decltype with friend inside a class template

2015-11-24 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68451

Paolo Carlini  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2015-11-24
 Ever confirmed|0   |1