[Bug c++/79163] Access-checking not done in template argument list of partial specialization
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 20 12:44:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79163
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-01-20
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
With 4.9 and earlier you only get the error once:
access.cc: In instantiation of ‘struct Detect<X>’:
access.cc:14:10: required from here
access.cc:12:28: error: ‘using type = long int’ is private
class X { using type = long; };
^
access.cc:10:34: error: within this context
{ using type = typename T::type; };
^
So the repeated diagnostics is a regression, but it would be better not to
issue any diagnostics at all.
More information about the Gcc-bugs
mailing list