https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102338
--- Comment #7 from Andrew Pinski ---
Note clang is borken in a different way, take:
struct S {
template
int f(T && t) noexcept {
return 0;
}
template
static int f(T && t, Ts && ... ts) noexcept(noexcept(f(ts...))) {
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102338
--- Comment #6 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #5)
> here is a more reduced testcase:
> struct S {
> template
> int f(T && t) noexcept {
> return 0;
> }
> template
> int f(T && t, Ts &
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102338
--- Comment #5 from Andrew Pinski ---
here is a more reduced testcase:
struct S {
template
int f(T && t) noexcept {
return 0;
}
template
int f(T && t, Ts && ... ts) noexcept(noexcept(f(ts...))) {
return f(ts
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102338
--- Comment #4 from Jerguš Suja ---
gcc version 9.3.0
x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-10ubuntu2'
--with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs
--enable-languages=c,ada,c++,go,brig,d
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102338
--- Comment #3 from Jerguš Suja ---
Created attachment 51465
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51465&action=edit
minimal testcase code snippet
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102338
--- Comment #2 from Jerguš Suja ---
Created attachment 51464
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51464&action=edit
preprocessed file
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102338
--- Comment #1 from Jerguš Suja ---
Created attachment 51463
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51463&action=edit
preprocessed file