public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44990] New: Wrong return value on error
@ 2010-07-19 14:57 parviz_fariborz at mentor dot com
2010-07-19 15:35 ` [Bug c++/44990] " redi at gcc dot gnu dot org
2010-07-24 16:09 ` jsm28 at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: parviz_fariborz at mentor dot com @ 2010-07-19 14:57 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 900 bytes --]
When used with -V option, g++ return status is 0 even when the input file fails
to compile.
Example :
Program :
=================================
int mult(int a, int b)
{
dsss;
int y = a * b;
return y;
}
Command :
g++ -V 4.4.3 -c -Wall -pipe --no-exceptions -fPIC -ggdb mult.cc -o mult.o
mult.cc: In function int mult(int, int):
mult.cc:5: error: dsss was not declared in this scope
sf6:/home/parvizf/tmp/make_test> echo $?
0
Note the return value of 0.
If compiled without the -V, the return value is 1
--
Summary: Wrong return value on error
Product: gcc
Version: 4.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: parviz_fariborz at mentor dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44990
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/44990] Wrong return value on error
2010-07-19 14:57 [Bug c++/44990] New: Wrong return value on error parviz_fariborz at mentor dot com
@ 2010-07-19 15:35 ` redi at gcc dot gnu dot org
2010-07-24 16:09 ` jsm28 at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-07-19 15:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from redi at gcc dot gnu dot org 2010-07-19 15:35 -------
As noted at http://gcc.gnu.org/gcc-4.6/changes.html the -V option has been
removed in the current development version, so this is unlikely to be fixed
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44990
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/44990] Wrong return value on error
2010-07-19 14:57 [Bug c++/44990] New: Wrong return value on error parviz_fariborz at mentor dot com
2010-07-19 15:35 ` [Bug c++/44990] " redi at gcc dot gnu dot org
@ 2010-07-24 16:09 ` jsm28 at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2010-07-24 16:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jsm28 at gcc dot gnu dot org 2010-07-24 16:09 -------
*** This bug has been marked as a duplicate of 40251 ***
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44990
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-24 16:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-19 14:57 [Bug c++/44990] New: Wrong return value on error parviz_fariborz at mentor dot com
2010-07-19 15:35 ` [Bug c++/44990] " redi at gcc dot gnu dot org
2010-07-24 16:09 ` jsm28 at gcc dot gnu dot org
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).