public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49508] New: [4.7 Regression] Bogus "control reaches end of non-void function" warning
@ 2011-06-22 21:11 paolo.carlini at oracle dot com
  2011-06-23  8:44 ` [Bug c++/49508] " jakub at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-06-22 21:11 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.7 Regression] Bogus "control reaches end of
                    non-void function" warning
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: paolo.carlini@oracle.com


In mainline, I see this, apparently bogus, warning which is not emitted by 4.6
(or ICC for that matter). Testcase distilled from 20_util/forward/1_neg.cc in
the v3 testsuite, compile with -Wreturn-type:

template<class T>
  struct shared_ptr
  {
  };

template<class T, class A1, class A2>
  shared_ptr<T>
  factory(const A1&, const A2&)
  {
    return shared_ptr<T>(new T());
  }

struct A
{
  A(int&, int&);
};

void g()
{
  factory<A>(1, 2);
}


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

* [Bug c++/49508] [4.7 Regression] Bogus "control reaches end of non-void function" warning
  2011-06-22 21:11 [Bug c++/49508] New: [4.7 Regression] Bogus "control reaches end of non-void function" warning paolo.carlini at oracle dot com
@ 2011-06-23  8:44 ` jakub at gcc dot gnu.org
  2011-06-23  9:02 ` [Bug c++/49508] " paolo.carlini at oracle dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-06-23  8:44 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-06-23 08:44:03 UTC ---
Started with http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149750.
(and is definitely emitted by g++ 4.6 too).
I wonder if this warning shouldn't be disabled when any errors have been
emitted already.


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

* [Bug c++/49508] Bogus "control reaches end of non-void function" warning
  2011-06-22 21:11 [Bug c++/49508] New: [4.7 Regression] Bogus "control reaches end of non-void function" warning paolo.carlini at oracle dot com
  2011-06-23  8:44 ` [Bug c++/49508] " jakub at gcc dot gnu.org
@ 2011-06-23  9:02 ` paolo.carlini at oracle dot com
  2011-10-18  1:23 ` paolo.carlini at oracle dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-06-23  9:02 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.7 Regression] Bogus      |Bogus "control reaches end
                   |"control reaches end of     |of non-void function"
                   |non-void function" warning  |warning

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-06-23 09:01:47 UTC ---
Indeed, I did something wrong with the shell variables, sorry, I'm removing the
regression marker. Still rather annoying anyway.


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

* [Bug c++/49508] Bogus "control reaches end of non-void function" warning
  2011-06-22 21:11 [Bug c++/49508] New: [4.7 Regression] Bogus "control reaches end of non-void function" warning paolo.carlini at oracle dot com
  2011-06-23  8:44 ` [Bug c++/49508] " jakub at gcc dot gnu.org
  2011-06-23  9:02 ` [Bug c++/49508] " paolo.carlini at oracle dot com
@ 2011-10-18  1:23 ` paolo.carlini at oracle dot com
  2011-10-19 17:28 ` paolo.carlini at oracle dot com
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-18  1:23 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

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

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-18 01:22:07 UTC ---
Same issue.

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


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

* [Bug c++/49508] Bogus "control reaches end of non-void function" warning
  2011-06-22 21:11 [Bug c++/49508] New: [4.7 Regression] Bogus "control reaches end of non-void function" warning paolo.carlini at oracle dot com
                   ` (2 preceding siblings ...)
  2011-10-18  1:23 ` paolo.carlini at oracle dot com
@ 2011-10-19 17:28 ` paolo.carlini at oracle dot com
  2011-10-20  1:16 ` paolo.carlini at oracle dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-19 17:28 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
   Last reconfirmed|                            |2011-10-19
         Resolution|DUPLICATE                   |
     Ever Confirmed|0                           |1

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-19 17:28:22 UTC ---
Not a duplicate, probably.


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

* [Bug c++/49508] Bogus "control reaches end of non-void function" warning
  2011-06-22 21:11 [Bug c++/49508] New: [4.7 Regression] Bogus "control reaches end of non-void function" warning paolo.carlini at oracle dot com
                   ` (3 preceding siblings ...)
  2011-10-19 17:28 ` paolo.carlini at oracle dot com
@ 2011-10-20  1:16 ` paolo.carlini at oracle dot com
  2015-01-29 15:04 ` redi at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-20  1:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-20 01:16:23 UTC ---
.. and I mus say, this specific issue is quite pervasive, I'm seeing it more
and more while triaging recent issues with warnings enabled, hmpf!


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

* [Bug c++/49508] Bogus "control reaches end of non-void function" warning
  2011-06-22 21:11 [Bug c++/49508] New: [4.7 Regression] Bogus "control reaches end of non-void function" warning paolo.carlini at oracle dot com
                   ` (4 preceding siblings ...)
  2011-10-20  1:16 ` paolo.carlini at oracle dot com
@ 2015-01-29 15:04 ` redi at gcc dot gnu.org
  2015-01-29 15:38 ` [Bug c++/49508] [4.8/4.9/5 regression] " jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2015-01-29 15:04 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 10603 bytes --]

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49508

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |redi at gcc dot gnu.org

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I'm seeing this frequently too, I was about to create a new PR as follows:

struct Y { };
struct X {
  X(short*);
};
X f() { int i; return &i; }


w.cc: In function ‘X f()’:
w.cc:5:24: error: could not convert ‘& i’ from ‘int*’ to ‘X’
 X f() { int i; return &i; }
                        ^
w.cc:5:27: warning: control reaches end of non-void function [-Wreturn-type]
 X f() { int i; return &i; }
                           ^

The warning is useless, because as soon as the error is fixed the warning will
go away, so it adds nothing but noise to the output.

And it's also confusing because there's a return statement *right* *there*! I
can see it and GCC even printed it out! :-) It only reaches the end because GCC
decides to ignore the return statement that fails in order to continue
compiling the rest of the function.

This doesn't happen in all cases where the return statement has an error, e.g.
if the example above does return i; instead of return &i; there's no warning.
>From gcc-bugs-return-475407-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 29 15:07:31 2015
Return-Path: <gcc-bugs-return-475407-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11083 invoked by alias); 29 Jan 2015 15:07:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10846 invoked by uid 48); 29 Jan 2015 15:07:19 -0000
From: "gerrit.los at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/64717] -fsanitize=vptr leads to warning:=?UTF-8?Q? ‘?=<anonymous>=?UTF-8?Q?’ may be used uninitialized in this function ?=[-Wmaybe-uninitialized]
Date: Thu, 29 Jan 2015 15:07:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerrit.los at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc attachments.created
Message-ID: <bug-64717-4-5p6RfDNeCw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64717-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64717-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg03401.txt.bz2
Content-length: 832

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64717

Gert-jan Los <gerrit.los at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gerrit.los at gmail dot com

--- Comment #1 from Gert-jan Los <gerrit.los at gmail dot com> ---
Created attachment 34615
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34615&action=edit
test case with virtual destructor

version: gcc version 5.0.0 20150128 (experimental) (GCC)
options: -O -fsanitize=vptr -Werror=uninitialized

PostScript_Back_End.C.i: In function ‘void fn1()’:
PostScript_Back_End.C.i:8:34: error: ‘<anonymous>’ is used uninitialized in
this function [-Werror=uninitialized]
>From gcc-bugs-return-475408-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 29 15:09:40 2015
Return-Path: <gcc-bugs-return-475408-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14368 invoked by alias); 29 Jan 2015 15:09:38 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14226 invoked by uid 48); 29 Jan 2015 15:09:30 -0000
From: "gerrit.los at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/64717] -fsanitize=vptr leads to warning:=?UTF-8?Q? ‘?=<anonymous>=?UTF-8?Q?’ may be used uninitialized in this function ?=[-Wmaybe-uninitialized]
Date: Thu, 29 Jan 2015 15:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gerrit.los at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-64717-4-SgC3RhWhub@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64717-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64717-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg03402.txt.bz2
Content-length: 552

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64717

--- Comment #2 from Gert-jan Los <gerrit.los at gmail dot com> ---
Created attachment 34616
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34616&action=edit
test case with virtual base class

version: gcc version 5.0.0 20150128 (experimental) (GCC)
options: -O -fsanitize=vptr -Werror=uninitialized

gap_widths.C.i: In function ‘void fn1()’:
gap_widths.C.i:13:41: error: ‘<anonymous>’ is used uninitialized in this
function [-Werror=uninitialized]
>From gcc-bugs-return-475409-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 29 15:09:55 2015
Return-Path: <gcc-bugs-return-475409-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14712 invoked by alias); 29 Jan 2015 15:09:55 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14492 invoked by uid 48); 29 Jan 2015 15:09:43 -0000
From: "sirl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/64860] New: multiple definition of typeinfo in 5.0 (4.9.2 works)
Date: Thu, 29 Jan 2015 15:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sirl at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created
Message-ID: <bug-64860-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-01/txt/msg03403.txt.bz2
Content-length: 2220

https://gcc.gnu.org/bugzilla/show_bug.cgi?idd860

            Bug ID: 64860
           Summary: multiple definition of typeinfo in 5.0 (4.9.2 works)
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sirl at gcc dot gnu.org

Created attachment 34617
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id4617&actioníit
Simple testcase. Use "make" to reproduce.

While trying to construct a testcase for a 4.8 to 4.9 change of LTO linking
behaviour, I stumbled over this (just re-tested with r220248):

g++-5 -flto -fuse-linker-plugin -O2 -Wall -Wextra -c file1.cpp
g++-5 -flto -fuse-linker-plugin -O2 -Wall -Wextra -c file2.cpp
gcc-5  -flto -fuse-linker-plugin -Wl,-r -nostdlib -o lib1.lib file1.o
gcc-5  -flto -fuse-linker-plugin -Wl,-r -nostdlib -o lib2.lib file2.o
g++-5 -flto -fuse-linker-plugin -O2 -o testexe lib1.lib lib2.lib
lib2.lib:(.rodata+0x0): multiple definition of `typeinfo name for CDialogBase'
lib1.lib:(.rodata+0x0): first defined here
collect2: error: ld returned 1 exit status

# g++-5 -v
Using built-in specs.
COLLECT_GCC=g++-5
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/5/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,fortran --with-gxx-include-dir=/usr/include/c++/5
--enable-ssp --disable-libssp --disable-libvtv --disable-plugin
--with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux'
--disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--with-default-libstdcxx-abi=c++98 --enable-version-specific-runtime-libs
--enable-linker-build-id --enable-linux-futex --program-suffix=-5
--without-system-libunwind --enable-multilib --with-arch-32=i586
--with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux
Thread model: posix
gcc version 5.0.0 20150129 (experimental) (SUSE Linux)

gcc-4.8.3 and 4.9.2 compile and link the same code just fine.


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

* [Bug c++/49508] [4.8/4.9/5 regression] Bogus "control reaches end of non-void function" warning
  2011-06-22 21:11 [Bug c++/49508] New: [4.7 Regression] Bogus "control reaches end of non-void function" warning paolo.carlini at oracle dot com
                   ` (5 preceding siblings ...)
  2015-01-29 15:04 ` redi at gcc dot gnu.org
@ 2015-01-29 15:38 ` jason at gcc dot gnu.org
  2015-01-29 16:10 ` jason at gcc dot gnu.org
  2015-01-29 16:13 ` jason at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-01-29 15:38 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49508

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED
                 CC|                            |jason at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
            Summary|Bogus "control reaches end  |[4.8/4.9/5 regression]
                   |of non-void function"       |Bogus "control reaches end
                   |warning                     |of non-void function"
                   |                            |warning

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
4.4 didn't warn, so it seems reasonable to call it a regression.


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

* [Bug c++/49508] [4.8/4.9/5 regression] Bogus "control reaches end of non-void function" warning
  2011-06-22 21:11 [Bug c++/49508] New: [4.7 Regression] Bogus "control reaches end of non-void function" warning paolo.carlini at oracle dot com
                   ` (6 preceding siblings ...)
  2015-01-29 15:38 ` [Bug c++/49508] [4.8/4.9/5 regression] " jason at gcc dot gnu.org
@ 2015-01-29 16:10 ` jason at gcc dot gnu.org
  2015-01-29 16:13 ` jason at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-01-29 16:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49508

--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Jan 29 16:10:08 2015
New Revision: 220252

URL: https://gcc.gnu.org/viewcvs?rev=220252&root=gcc&view=rev
Log:
    PR c++/49508
    * semantics.c (finish_return_stmt): Suppress -Wreturn-type on
    erroneous return statement.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/g++.old-deja/g++.jason/report.C


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

* [Bug c++/49508] [4.8/4.9/5 regression] Bogus "control reaches end of non-void function" warning
  2011-06-22 21:11 [Bug c++/49508] New: [4.7 Regression] Bogus "control reaches end of non-void function" warning paolo.carlini at oracle dot com
                   ` (7 preceding siblings ...)
  2015-01-29 16:10 ` jason at gcc dot gnu.org
@ 2015-01-29 16:13 ` jason at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-01-29 16:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49508

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |5.0

--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for GCC 5.


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

end of thread, other threads:[~2015-01-29 16:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-22 21:11 [Bug c++/49508] New: [4.7 Regression] Bogus "control reaches end of non-void function" warning paolo.carlini at oracle dot com
2011-06-23  8:44 ` [Bug c++/49508] " jakub at gcc dot gnu.org
2011-06-23  9:02 ` [Bug c++/49508] " paolo.carlini at oracle dot com
2011-10-18  1:23 ` paolo.carlini at oracle dot com
2011-10-19 17:28 ` paolo.carlini at oracle dot com
2011-10-20  1:16 ` paolo.carlini at oracle dot com
2015-01-29 15:04 ` redi at gcc dot gnu.org
2015-01-29 15:38 ` [Bug c++/49508] [4.8/4.9/5 regression] " jason at gcc dot gnu.org
2015-01-29 16:10 ` jason at gcc dot gnu.org
2015-01-29 16:13 ` jason at gcc dot gnu.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).