[Bug c++/111222] ICE on basic_string_view and alias templates with missing template argument

2024-02-02 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111222

Patrick Palka  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
   See Also|https://gcc.gnu.org/bugzill |
   |a/show_bug.cgi?id=112769|
 Status|ASSIGNED|RESOLVED

--- Comment #4 from Patrick Palka  ---
The underlying bug is the same as PR112769 which is a regression, so let's call
this one a dup.

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

[Bug c++/111222] ICE on basic_string_view and alias templates with missing template argument

2023-10-13 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111222

Patrick Palka  changed:

   What|Removed |Added

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

[Bug c++/111222] ICE on basic_string_view and alias templates with missing template argument

2023-10-13 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111222

Marek Polacek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2023-10-13
 Ever confirmed|0   |1
 CC||mpolacek at gcc dot gnu.org,
   ||ppalka at gcc dot gnu.org

--- Comment #3 from Marek Polacek  ---
I think the ICE below started with r11-3261.


In file included from 111222.C:1:
/home/mpolacek/x/gcc11/x86_64-pc-linux-gnu/libstdc++-v3/include/string_view:158:16:
internal compiler error: in add_outermost_template_args, at cp/pt.c:601
  158 |   && (!requires (_DRange& __d) {
  |^
  159 | __d.operator ::std::basic_string_view<_CharT,
_Traits>();
  |
~
  160 |   })
  |   ~ 
0xd52027 add_outermost_template_args(tree_node*, tree_node*)
/home/mpolacek/src/gcc11/gcc/cp/pt.c:601
0xd8838e add_extra_args(tree_node*, tree_node*, int, tree_node*)
/home/mpolacek/src/gcc11/gcc/cp/pt.c:13103
0xb1d061 tsubst_requires_expr
/home/mpolacek/src/gcc11/gcc/cp/constraint.cc:2310
0xb1d30c tsubst_requires_expr(tree_node*, tree_node*, int, tree_node*)
/home/mpolacek/src/gcc11/gcc/cp/constraint.cc:2353
0xdb6406 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
/home/mpolacek/src/gcc11/gcc/cp/pt.c:21116
0xdb09af tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
/home/mpolacek/src/gcc11/gcc/cp/pt.c:20035
0xdb0c91 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
/home/mpolacek/src/gcc11/gcc/cp/pt.c:20102
0xdb0c57 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
/home/mpolacek/src/gcc11/gcc/cp/pt.c:20101
0xdadc55 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool)
/home/mpolacek/src/gcc11/gcc/cp/pt.c:19382
0xb1e33e tsubst_constraint(tree_node*, tree_node*, int, tree_node*)
/home/mpolacek/src/gcc11/gcc/cp/constraint.cc:2761
0xb1d390 tsubst_constraint_info(tree_node*, tree_node*, int, tree_node*)
/home/mpolacek/src/gcc11/gcc/cp/constraint.cc:2366
0xdd8ae3 alias_ctad_tweaks
/home/mpolacek/src/gcc11/gcc/cp/pt.c:29355
0xdd93f8 deduction_guides_for
/home/mpolacek/src/gcc11/gcc/cp/pt.c:29488
0xdd9efe do_class_deduction
/home/mpolacek/src/gcc11/gcc/cp/pt.c:29611
0xddae07 do_auto_deduction(tree_node*, tree_node*, tree_node*, int,
auto_deduction_context, tree_node*, int)
/home/mpolacek/src/gcc11/gcc/cp/pt.c:29781
0xb91d12 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
/home/mpolacek/src/gcc11/gcc/cp/decl.c:7899
0xd05934 cp_parser_init_declarator
/home/mpolacek/src/gcc11/gcc/cp/parser.c:21931
0xcf750b cp_parser_simple_declaration
/home/mpolacek/src/gcc11/gcc/cp/parser.c:14476
0xcf70c7 cp_parser_block_declaration
/home/mpolacek/src/gcc11/gcc/cp/parser.c:14302
0xcf6d80 cp_parser_declaration
/home/mpolacek/src/gcc11/gcc/cp/parser.c:14173

[Bug c++/111222] ICE on basic_string_view and alias templates with missing template argument

2023-08-29 Thread stevenxia990430 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111222

--- Comment #2 from Steven Xia  ---
interesting

[Bug c++/111222] ICE on basic_string_view and alias templates with missing template argument

2023-08-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111222

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||accepts-invalid
Summary|[c++23] ICE on  |ICE on basic_string_view
   |basic_string_view with  |and alias templates with
   |missing template argument   |missing template argument

--- Comment #1 from Andrew Pinski  ---
Hmm, we have an accepts invalid here too. For C++20 we accept it but deduction
for alias templates is not valid ...