c++/9134: [3.4 regression] sufficient contextual information to determine type; reports otherwise
bangerth@dealii.org
bangerth@dealii.org
Mon Jan 13 05:17:00 GMT 2003
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
More information about the Gcc-bugs
mailing list