public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39681]  New: Compile error is not descriptive
@ 2009-04-07 15:34 emreturkay at gmail dot com
  2009-04-07 15:38 ` [Bug c++/39681] " paolo dot carlini at oracle dot com
  0 siblings, 1 reply; 10+ messages in thread
From: emreturkay at gmail dot com @ 2009-04-07 15:34 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-05-17 19:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-39681-4@http.gcc.gnu.org/bugzilla/>
2011-10-02 10:07 ` [Bug c++/39681] Compile error is not descriptive paolo.carlini at oracle dot com
2011-10-03 10:08 ` manu at gcc dot gnu.org
2011-10-03 11:09 ` paolo.carlini at oracle dot com
2011-10-03 11:14 ` paolo.carlini at oracle dot com
2012-05-14 11:33 ` manu at gcc dot gnu.org
2012-05-14 16:43 ` redi at gcc dot gnu.org
2012-05-14 16:44 ` manu at gcc dot gnu.org
2012-05-17 19:02 ` paolo.carlini at oracle dot com
2012-05-17 19:25 ` paolo at gcc dot gnu.org
2009-04-07 15:34 [Bug c++/39681] New: " emreturkay at gmail dot com
2009-04-07 15:38 ` [Bug c++/39681] " paolo dot carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).