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; 2+ 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] 2+ messages in thread
* [Bug c++/39681] Compile error is not descriptive
2009-04-07 15:34 [Bug c++/39681] New: Compile error is not descriptive emreturkay at gmail dot com
@ 2009-04-07 15:38 ` paolo dot carlini at oracle dot com
0 siblings, 0 replies; 2+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-04-07 15:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from paolo dot carlini at oracle dot com 2009-04-07 15:37 -------
FWIW, the EDG C++ front-end issues a very similar error message ;)
39681.C(3): error: expected a type specifier
int* p = new foo;
^
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-07 15:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-07 15:34 [Bug c++/39681] New: Compile error is not descriptive 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).