This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9134: [3.4 regression] sufficient contextual information to determine type; reports otherwise
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, rittle at labs dot mot dot com
- Date: 6 Jan 2003 23:03:43 -0000
- Subject: Re: c++/9134: [3.4 regression] sufficient contextual information to determine type; reports otherwise
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, rittle at labs dot mot dot com, gcc-gnats at gcc dot gnu dot org
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