This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51152] New: error: X has no member named Y on code that seems valid
- From: "cas43 at cs dot stanford.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 Nov 2011 06:13:02 +0000
- Subject: [Bug c++/51152] New: error: X has no member named Y on code that seems valid
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51152
Bug #: 51152
Summary: error: X has no member named Y on code that seems
valid
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: cas43@cs.stanford.edu
How to run: g++ -c prog.cpp
prog.cpp is attached.
Diagnostic produced:
prog.cpp: In member function âvoid C::f()â:
prog.cpp:21:12: error: âstruct Bâ has no member named âaâ
Version of g++ that produces this diagnostic:
Using built-in specs.
COLLECT_GCC=/home/cas43/new-gcc/inst/bin/g++
COLLECT_LTO_WRAPPER=/home/cas43/new-gcc/inst/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../current-gcc/configure --prefix=/home/cas43/new-gcc/inst
Thread model: posix
gcc version 4.7.0 20111116 (experimental) (GCC)
Expected: should compile cleanly. (Compiles cleanly with gcc version 4.4.3
(Ubuntu 4.4.3-4ubuntu5))