From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1033 invoked by alias); 7 Apr 2009 15:34:39 -0000 Received: (qmail 992 invoked by uid 48); 7 Apr 2009 15:34:25 -0000 Date: Tue, 07 Apr 2009 15:34:00 -0000 Subject: [Bug c++/39681] New: Compile error is not descriptive X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "emreturkay at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg00645.txt.bz2 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