[Bug c++/94489] ICE: unexpected expression ‘std::min’ of kind overload

2024-02-19 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94489 --- Comment #5 from Patrick Palka --- If we change std::plus to std::plus{} in order to make the testcase valid, then we accept ever since the PR94490 fix. The comment #4 testcase can be further reduced to: template struct A; template A<__integ

[Bug c++/94489] ICE: unexpected expression ‘std::min’ of kind overload

2020-04-05 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94489 Martin Liška changed: What|Removed |Added Last reconfirmed||2020-04-06 CC|

[Bug c++/94489] ICE: unexpected expression ‘std::min’ of kind overload

2020-04-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94489 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org Ke

[Bug c++/94489] ICE: unexpected expression ‘std::min’ of kind overload

2020-04-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94489 --- Comment #3 from Marek Polacek --- Likely still invalid, but it compiles without errors with the patch above. template struct S { }; template using U = S; template constexpr long g(T) { return 1l; } template> struct X { }; template auto f

[Bug c++/94489] ICE: unexpected expression ‘std::min’ of kind overload

2020-04-06 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94489 --- Comment #4 from Marek Polacek --- (In reply to Marek Polacek from comment #2) > Doesn't seem like valid code; clang++ trunk also rejects it: > 94489.C:28:61: error: no matching constructor for initialization of > 'std::plus' > > I think the