This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/31246] Strange -Wunreachable-code warning with _GLIBCXX_DEBUG



------- Comment #20 from manu at gcc dot gnu dot org  2008-08-23 16:13 -------
For testcase in comment #4 I get 2 warnings now:

home/manuel/test2/src/gcc/testsuite/g++.dg/warn/pr31246-2.C: In function ?int*
get_ptr(void*)?:
/home/manuel/test2/src/gcc/testsuite/g++.dg/warn/pr31246-2.C:8: warning: will
never be executed

/home/manuel/test2/src/libstdc++-v3/libsupc++/new: In function ?void* operator
new(size_t, void*)?:
/home/manuel/test2/src/libstdc++-v3/libsupc++/new:105: warning: will never be
executed

libsupc++/new does not contain #pragma GCC system_headers, so even using
warning_at doesn't suppress the warning.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]