https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99683
--- Comment #1 from Omer Rosler ---
It seems that
Reduced:
template
struct A
{
constexpr A(int) {}
};
A(int) -> A;
template //template works fine
struct B
{
template
B(T);
};
template
B(T) -> B; //see below
int main()
{
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99683
Bug ID: 99683
Summary: Deduction failure when using CTAD of CNTTP inside a
deduction guide
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97134
Omer Rosler changed:
What|Removed |Added
CC||omer.rosler at gmail dot com
--- Comment #
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99387
--- Comment #1 from Omer Rosler ---
Simplified example:
https://godbolt.org/z/b814o7
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99387
Bug ID: 99387
Summary: ICE when mixing CNTTP with deduction guides
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++