public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16784] New: Wrong warning : control reaches end of non-void function
@ 2004-07-27 16:08 sylvain dot pion at sophia dot inria dot fr
2004-07-27 16:13 ` [Bug c++/16784] [3.5 regression] " bangerth at dealii dot org
2004-07-27 16:29 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: sylvain dot pion at sophia dot inria dot fr @ 2004-07-27 16:08 UTC (permalink / raw)
To: gcc-bugs
g++ 3.5, with -Wall, emits a buggy warning for the code below.
g++ 3.4 works fine.
--------------------
struct A {
A() {}
~A() {}
};
int k()
{
A K;
bool b;
if ( b ) {
A G;
return 0;
}
else
return 0;
}
--------------------
spion@termite:~/GCC> ./Linux/bin/g++ -Wall -c warn_3_5.C
warn_3_5.C: In function `int k()':
warn_3_5.C:17: warning: control reaches end of non-void function
--
Summary: Wrong warning : control reaches end of non-void function
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sylvain dot pion at sophia dot inria dot fr
CC: gcc-bugs at gcc dot gnu dot org,sylvain dot pion at
sophia dot inria dot fr
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16784
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/16784] [3.5 regression] Wrong warning : control reaches end of non-void function
2004-07-27 16:08 [Bug c++/16784] New: Wrong warning : control reaches end of non-void function sylvain dot pion at sophia dot inria dot fr
@ 2004-07-27 16:13 ` bangerth at dealii dot org
2004-07-27 16:29 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: bangerth at dealii dot org @ 2004-07-27 16:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-07-27 16:13 -------
Confirmed, a mainline regression.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-07-27 16:13:31
date| |
Summary|Wrong warning : control |[3.5 regression] Wrong
|reaches end of non-void |warning : control reaches
|function |end of non-void function
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16784
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/16784] [3.5 regression] Wrong warning : control reaches end of non-void function
2004-07-27 16:08 [Bug c++/16784] New: Wrong warning : control reaches end of non-void function sylvain dot pion at sophia dot inria dot fr
2004-07-27 16:13 ` [Bug c++/16784] [3.5 regression] " bangerth at dealii dot org
@ 2004-07-27 16:29 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-27 16:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-27 16:29 -------
*** This bug has been marked as a duplicate of 16558 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16784
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-07-27 16:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-27 16:08 [Bug c++/16784] New: Wrong warning : control reaches end of non-void function sylvain dot pion at sophia dot inria dot fr
2004-07-27 16:13 ` [Bug c++/16784] [3.5 regression] " bangerth at dealii dot org
2004-07-27 16:29 ` pinskia 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).