This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9420: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jgibbs at bluearc dot com, mdorey at bluearc dot com, nobody at gcc dot gnu dot org
- Date: 23 Jan 2003 17:13:55 -0000
- Subject: Re: c++/9420: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jgibbs at bluearc dot com, mdorey at bluearc dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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