public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12504] New: [REGRESSION] incorrect warning of missing return statement
@ 2003-10-03 19:34 merkert at charter dot net
  2003-10-03 20:27 ` [Bug c++/12504] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: merkert at charter dot net @ 2003-10-03 19:34 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12504

           Summary: [REGRESSION] incorrect warning of missing return
                    statement
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: merkert at charter dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: g++ (GCC) 3.4 20031001 (experimental)

The following code prints a warning:

cat > test.cpp <<EOF
template <class T> int foo()
{ throw 0; }
EOF
g++ -c -Wall test.cpp
test.cpp: In function `int foo()':
test.cpp:2: warning: no return statement in function returning non-void

This code compiles fine with gcc-3.3.1, so it's a regression.


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

* [Bug c++/12504] [REGRESSION] incorrect warning of missing return statement
  2003-10-03 19:34 [Bug c++/12504] New: [REGRESSION] incorrect warning of missing return statement merkert at charter dot net
@ 2003-10-03 20:27 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-03 20:27 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12504


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-03 20:27 -------
This is a dup of bug 11725.

*** This bug has been marked as a duplicate of 11725 ***


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

end of thread, other threads:[~2003-10-03 20:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-03 19:34 [Bug c++/12504] New: [REGRESSION] incorrect warning of missing return statement merkert at charter dot net
2003-10-03 20:27 ` [Bug c++/12504] " 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).