[Bug c++/13052] error in looking up template super classes in different namespace

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Fri Nov 14 15:00:00 GMT 2003


------- Additional Comments From bangerth at dealii dot org  2003-11-14 15:00 -------
I can confirm that this program 
------------------------
namespace NS
{
  template <int> struct X { int x;};
}

template<int i> struct Y : NS::X<i> {};


int main()
{
  Y<0> y;
  y.X<0>::x=1;
}
-------------------------------
indeed does not compile. I'm not quite sure that it should, though I
seem to remember that we had another PR that was about something similar:
the name of the base class is supposed to be injected into the namespace
of the class, so this should indeed compile then. I think I even recall
that some kind of DR was associated with this question.

Nathan, do you remember?

W.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nathan at gcc dot gnu dot
                   |                            |org


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



More information about the Gcc-bugs mailing list