This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/10749: regression from 2.95.3: triple nested template classes in namespace need to qualify ns
- From: meinlschmidt at informatik dot uni-erlangen dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 12 May 2003 13:11:25 -0000
- Subject: c++/10749: regression from 2.95.3: triple nested template classes in namespace need to qualify ns
- Reply-to: meinlschmidt at informatik dot uni-erlangen dot de
>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: