This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47342] misleading diagnostic for member of undeclared class template partial specialization
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Sep 2017 21:59:48 +0000
- Subject: [Bug c++/47342] misleading diagnostic for member of undeclared class template partial specialization
- Auto-submitted: auto-generated
- References: <bug-47342-4@http.gcc.gnu.org/bugzilla/>
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.