This is the mail archive of the gcc-bugs@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++/9134: [3.4 regression] sufficient contextual information to determine type; reports otherwise


Old Synopsis: sufficient contextual information to determine type; reports otherwise
New Synopsis: [3.4 regression] sufficient contextual information to determine type; reports otherwise

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Jan  6 15:03:43 2003
State-Changed-Why:
    Confirmed. It's a regression on the mainline, it works with
    a snapshot of mainline from mid-December, so it's likely
    but not sure that this works with 3.3. Here's an even
    shorter testcase:
    --------------------------
    struct X {
      int foo (void);
    };
    
    struct Y {
      X x1,x2;
      int bar (bool b) { return (b ? x1 : x2).foo (); }
    };
    ------------------
    
    tmp/g> /home/bangerth/bin/gcc-3.4-pre/bin/c++ s.C
    s.C: In member function `int Y::bar(bool)':
    s.C:7: error: insufficient contextual information to determine type

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9134


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