[Bug c++/119685] deduction guide sometimes ignored in a function call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119685 --- Comment #2 from Andrew Pinski --- Simple workaround is doing: Foo foo{checked_int(n), checked_int(n*n)}; Instead to get around the parse error issue.
[Bug c++/119685] deduction guide sometimes ignored in a function call
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119685 --- Comment #1 from Andrew Pinski --- I wonder if this is due to starting to parse as a function declaration and erroring out but the error should be delayed until a parse error itself happens with n*n.