Note: This enhancement request (in my opinion) is related with the compiler frontend (of C++ and probably also C) and can be applied to all platforms.
Given a .cpp file (3 lines below only, nothing else); int main() { int* p = new foo; } When tried to compile gives the following error: error: expected type-specifier before ‘foo’ error: expected ‘,’ or ‘;’ before ‘foo’ Which is not descriptive. Something like; error: ‘foo’ was not declared in this scope would be better, and consistent with the error report of the compilation of; int main() { foo i; } -- Summary: Compile error is not descriptive Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: emreturkay at gmail dot com GCC build triplet: i486-linux-gnu GCC host triplet: i486-linux-gnu GCC target triplet: i486-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681