[Bug c++/99938] Non-void function with no return statement: Either no or misleading warning is printed

2021-04-06 Thread rschoe at de dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99938 --- Comment #2 from rschoe at de dot ibm.com --- Created attachment 50514 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50514=edit modified example (nullptr), which now shows a warning but wrong line number 11 wgen compiled with g++ -O1 -c

[Bug c++/99938] New: Non-void function with no return statement: Either no or misleading warning is printed

2021-04-06 Thread rschoe at de dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99938 Bug ID: 99938 Summary: Non-void function with no return statement: Either no or misleading warning is printed Product: gcc Version: 10.2.1 Status: UNCONFIRMED