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]

c++/10749: regression from 2.95.3: triple nested template classes in namespace need to qualify ns


>Number:         10749
>Category:       c++
>Synopsis:       regression from 2.95.3: triple nested template classes in namespace need to qualify ns
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Mon May 12 13:16:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Meinlschmidt
>Release:        g++ (GCC) 3.3 20030226 (prerelease) (SuSE Linux)
>Organization:
>Environment:
PC Linux SuSE 8.2 distro out-of-the-box
>Description:
namespace ns {

  template<typename T> class Foo {
  public:
    template<typename U> class Bar;
  };

  template<typename T> template<typename U> class Foo<T>::Bar {
    Foo<T> &works;
  public:
    template<typename V> class Baz;
  };

  template<typename T> template<typename U> template<typename V> class Foo<T>::B
ar<U>::Baz {
    Foo<T>     &chokes;  // error: non-template type `Foo' used as a template
    ns::Foo<T> &works;
  };

}
>How-To-Repeat:

>Fix:
Workaround: Explicitely qualify namespace
or revert to stone knives aka 2.95
>Release-Note:
>Audit-Trail:
>Unformatted:


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