https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91023
Andrew Pinski changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91023
--- Comment #5 from Andrew Pinski ---
The current ICE is:
```
t.cc:10:11: internal compiler error: tree check: expected type_argument_pack or
nontype_argument_pack, have record_type in unify_pack_expansion, at
cp/pt.cc:23947
0x979320 tree_check_f
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91023
Andrew Pinski changed:
What|Removed |Added
Keywords|needs-reduction |
--- Comment #4 from Andrew Pinski ---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91023
--- Comment #3 from Andrew Pinski ---
The trunk we get the following ICE:
: In substitution of 'template
std::optional > parse_variant(const Foo >& ...) [with T = ]':
:34:34: required from here
:34:34: internal compiler error: tree check: expec
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91023
Martin Liška changed:
What|Removed |Added
Keywords||rejects-valid
Status|UNCONFIR
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91023
--- Comment #1 from Christoph Höger ---
Since it might help investigating the issue, here is a workaround:
#include
#include
template
struct Foo
{
};
template
std::optional>
parse_variant(const Foo &... variants)
{
return {};
}
struc