[Bug c++/56189] Infinite recursion with noexcept when instantiating function template
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56189 Martin Sebor changed: What|Removed |Added Status|NEW |RESOLVED CC||msebor at gcc dot gnu.org Target Milestone|--- |11.4 Resolution|--- |FIXED --- Comment #3 from Martin Sebor --- This is accepted by GCC 12 in the default C++ mode. It looks like it's been accepted since g:5830f753559f25a5dabcc3507bffa611c6b575a6. It might be worth adding the test case.
[Bug c++/56189] Infinite recursion with noexcept when instantiating function template
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56189 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek --- We now say: 56189.C: In instantiation of ‘void tt(T&, T&) [with T = int]’: 56189.C:10:42: required from ‘void foo(T&, T&) [with T = int]’ 56189.C:15:12: required from here 56189.C:7:6: error: exception specification of ‘void tt(T&, T&) [with T = int]’ depends on itself 7 | void tt(T& a, T& b) noexcept(noexcept(::test::tt(a,b))); | ^~ but clang++/icc compile it.
[Bug c++/56189] Infinite recursion with noexcept when instantiating function template
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56189 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Keywords||rejects-valid Status|UNCONFIRMED |NEW Last reconfirmed||2013-04-16 Ever Confirmed|0 |1 Known to fail||4.7.3, 4.8.1, 4.9.0 --- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org 2013-04-16 21:16:08 UTC --- name lookup in the noexcept(noexcept(...)) seems to be ignoring the namespace qualificiation