https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61732
--- Comment #5 from Jonathan Wakely ---
The error happens outside the immediate context.
See http://stackoverflow.com/a/15261234/981959
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61732
--- Comment #4 from Joaquín M López Muñoz ---
I see. The following is slightly off-topic, so please tell me if you can carry
on the discussion offline. Why is such an instantiation error not
SFINAE-protected in the following example?
template st
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61732
--- Comment #3 from Jonathan Wakely ---
(In reply to Joaquín M López Muñoz from comment #2)
> Umm... This is not how I read [class]/3 (no mention to instances there).
That refers to classes. in Your original example derived is not a class, it's
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61732
--- Comment #2 from Joaquín M López Muñoz ---
Umm... This is not how I read [class]/3 (no mention to instances there). And,
moreover, if your interpretation was right then the following should compile
too:
struct X final{};
struct derived:X{};
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61732
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---