[Bug c++/45917] inaccessible types allowed as template argument in nested-name-specifier

2013-04-01 Thread jason at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45917



Jason Merrill jason at gcc dot gnu.org changed:



   What|Removed |Added



 Status|ASSIGNED|RESOLVED

 Resolution||FIXED

   Target Milestone|--- |4.9.0



--- Comment #6 from Jason Merrill jason at gcc dot gnu.org 2013-04-01 
21:04:03 UTC ---

Fixed for 4.9.


[Bug c++/45917] inaccessible types allowed as template argument in nested-name-specifier

2013-03-22 Thread paolo.carlini at oracle dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45917



Paolo Carlini paolo.carlini at oracle dot com changed:



   What|Removed |Added



 CC||antoinep92 at gmail dot com



--- Comment #5 from Paolo Carlini paolo.carlini at oracle dot com 2013-03-22 
11:17:35 UTC ---

*** Bug 56687 has been marked as a duplicate of this bug. ***


[Bug c++/45917] inaccessible types allowed as template argument in nested-name-specifier

2013-03-16 Thread jason at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45917



--- Comment #4 from Jason Merrill jason at gcc dot gnu.org 2013-03-17 
02:39:39 UTC ---

Author: jason

Date: Sun Mar 17 02:39:22 2013

New Revision: 196744



URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=196744

Log:

PR c++/45917

* parser.c (cp_parser_template_id): Don't forget access checks.



Added:

trunk/gcc/testsuite/g++.dg/template/access26.C

Modified:

trunk/gcc/cp/ChangeLog

trunk/gcc/cp/parser.c


[Bug c++/45917] inaccessible types allowed as template argument in nested-name-specifier

2013-03-14 Thread jason at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45917



Jason Merrill jason at gcc dot gnu.org changed:



   What|Removed |Added



 Status|NEW |ASSIGNED

 CC||jason at gcc dot gnu.org

 AssignedTo|unassigned at gcc dot   |jason at gcc dot gnu.org

   |gnu.org |


[Bug c++/45917] inaccessible types allowed as template argument in nested-name-specifier

2013-03-14 Thread jason at gcc dot gnu.org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45917



--- Comment #3 from Jason Merrill jason at gcc dot gnu.org 2013-03-14 
21:40:38 UTC ---

Created attachment 29671

  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=29671

patch



Simple fix, waiting for 4.8 to branch.


[Bug c++/45917] inaccessible types allowed as template argument in nested-name-specifier

2010-10-06 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45917

Jonathan Wakely redi at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||accepts-invalid
Summary|Friend of friend is allowed |inaccessible types allowed
   |the access to the private   |as template argument in
   |type through the template   |nested-name-specifier

--- Comment #2 from Jonathan Wakely redi at gcc dot gnu.org 2010-10-06 
21:48:01 UTC ---
Here's another variation that should fail but doesn't, showing this has nothing
to do with friends:

templateclass T
struct list
{
  struct nested { };
};

class F
{
  struct R { };
};

void f() { listF::R::nested n; }

listF::R::nested n;


I've changed the summary to reflect this