fyi,
gcc version 3.3.1 20030626 (Debian prerelease)
(aka '3.3.1-0pre0' in debian)
improves a bit on the situation:
class Foo {
template struct InFoo;
template struct InFoo2;
};
template<>
struct Foo::InFoo {
// ...this works now... (didn't work with 3.3.0)
};
template
struct Foo::InFo
Package: g++-3.3
Version: 1:3.3-2
Severity: normal
g++-3.3 fails to compile the following code (which would compile with
previous g++ versions):
$ cat in_class_class.cc
class Foo {
template struct InFoo;
};
template<>
struct Foo::InFoo {
// ...
};
$ g++ -c in_class_class.cc
in_class_cla
2 matches
Mail list logo