c++/9420: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
bangerth@dealii.org
bangerth@dealii.org
Thu Jan 23 17:46:00 GMT 2003
Old Synopsis: [regression over 2.95] incomplete type incorrectly reported
New Synopsis: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu Jan 23 17:13:55 2003
State-Changed-Why:
True. Very weird problem:
--------------------------
enum { E };
template <typename T> struct A {
static const int a = (E < 0);
};
template <typename T> class B {
A<int> b;
};
struct C {
C(B<int>);
};
int operator<(C, C);
A<int> c;
----------------------------
Changing any bit of the code makes the bug go away (e.g.
changing op< to function foo). Used to work with 2.95, but
does no longer with 3.2.2 and 3.3 (just accidentially
ruined my 3.4 installation, but likely to show same problem).
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9420
More information about the Gcc-bugs
mailing list