This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/39729] New: C++ "does not name a type" error message can be misleading
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Apr 2009 20:20:03 -0000
- Subject: [Bug c++/39729] New: C++ "does not name a type" error message can be misleading
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
For this C++ example:
using namespace std;
ifstream x;
ifstream y();
int main(int argc, char** argv) {
return 0;
}
current mainline g++ says this:
foo.cc:3: error: ?ifstream? does not name a type
foo.cc:4: error: ?ifstream? does not name a type
ifstream not only does not name a type, it is not defined at all in any way.
Let's say that instead of leading the user into trying to figure out what is
wrong with ifstream.
foo.cc:3: error: ?ifstream? not defined
--
Summary: C++ "does not name a type" error message can be
misleading
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ian at airs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39729