This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47342] misleading diagnostic for member of undeclared class template partial specialization


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47342

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-09-26
                 CC|                            |egallager at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, with current gcc the diagnostic is:

$ /usr/local/bin/g++ -c -Wall -Wextra -pedantic 47342.cc
47342.cc:26:14: error: invalid use of incomplete type ‘struct X<Y<T> >’
 X< Y<T> >::f()    // xxx
              ^
47342.cc:2:8: note: declaration of ‘struct X<Y<T> >’
 struct X : T
        ^
$

...which could still be improved.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]