https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111803
--- Comment #3 from grbrown ---
(In reply to grbrown from comment #2)
> From my tests though, removing the 'template' will allow it to
> work, so I don't know if you're explanation is entirely correct.
I.e. replace
template
void
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111803
--- Comment #2 from grbrown ---
(In reply to Andrew Pinski from comment #1)
> Note clang also rejects this code for the same reason as GCC.
>
> Here is a reduced version which shows the difference between ICC/MSVC and
> GCC/clang:
> ```
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111803
--- Comment #1 from Andrew Pinski ---
Note clang also rejects this code for the same reason as GCC.
Here is a reduced version which shows the difference between ICC/MSVC and
GCC/clang:
```
struct A
{
int data;
};
struct B : A{};
struct