This is the mail archive of the gcc-prs@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]

Re: c++/9420: [3.2/3.3/3.4 regression] incomplete type incorrectly reported


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


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