[Bug c++/89218] New: [8/9 Regression] g++ miscompiles functions returning non-void without return statements

2019-02-05 Thread ldv at sourceware dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89218

Bug ID: 89218
   Summary: [8/9 Regression] g++ miscompiles functions returning
non-void without return statements
   Product: gcc
   Version: 8.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ldv at sourceware dot org
  Target Milestone: ---

$ gcc -xc++ -S -O - <: In function 'int foo()':
:1:19: warning: no return statement in function returning non-void
[-Wreturn-type]

Results to

main:
.LFB1:
.cfi_startproc
.cfi_endproc

Executing this results to segfault.
Miscompilation happens with -Og and higher optimization levels.
gcc -xc is fine.

[Bug libstdc++/100900] error: missing 'typename' prior to dependent type name in elements_view

2021-07-04 Thread ldv at sourceware dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100900

Dmitry V. Levin  changed:

   What|Removed |Added

 CC||ldv at sourceware dot org

--- Comment #9 from Dmitry V. Levin  ---
Since PR95983 fix was backported to gcc-10 (by commit
1cb39945993c89746b0347746bd1267de85cbc42), please backport this follow-up fix
to gcc-10, too.