[Bug c++/109506] [10/11/12/13 regression] -fchecking=2 causes some template constructor not be instantiated when used with NSDMI

2023-05-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109506

--- Comment #12 from CVS Commits  ---
The releases/gcc-13 branch has been updated by Patrick Palka
:

https://gcc.gnu.org/g:f077b784a6e6876682606bd788ac77a698b81016

commit r13-7300-gf077b784a6e6876682606bd788ac77a698b81016
Author: Patrick Palka 
Date:   Tue May 2 08:48:59 2023 -0400

c++: Add testcase for already fixed PR [PR109506]

The PR109666 fix r14-386-g07c52d1eec967 incidentally also fixes this PR.

PR c++/109506

gcc/testsuite/ChangeLog:

* g++.dg/cpp0x/nsdmi-template26.C: New test.

(cherry picked from commit 9a9840cedbdc8be8252fd8f2d31d8fbd36632a2e)

[Bug c++/109506] [10/11/12/13 regression] -fchecking=2 causes some template constructor not be instantiated when used with NSDMI

2023-04-14 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109506

--- Comment #9 from Sam James  ---
I violated my own rule, by the way, by not saying the origin. This was found by
sultan in Gentoo when building Chromium (112, I think).

[Bug c++/109506] [10/11/12/13 regression] -fchecking=2 causes some template constructor not be instantiated when used with NSDMI

2023-04-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109506

--- Comment #8 from Andrew Pinski  ---
build_non_dependent_expr has the only code which does: flag_checking > 1

[Bug c++/109506] [10/11/12/13 regression] -fchecking=2 causes some template constructor not be instantiated when used with NSDMI

2023-04-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109506

--- Comment #7 from Andrew Pinski  ---
>This works with 12 and Arsen reports that an earlier 13 is ok, but not had a 
>chance to bisect yet.

Just a quick note on why Arsen could not reproduce it in an earlier 13, he was
using --enable-checking=yes .

[Bug c++/109506] [10/11/12/13 regression] -fchecking=2 causes some template constructor not be instantiated when used with NSDMI

2023-04-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109506

Andrew Pinski  changed:

   What|Removed |Added

Summary|[13 regression] 'error: |[10/11/12/13 regression]
   |inlining failed in call to  |-fchecking=2 causes some
   |‘always_inline’ |template constructor not be
   |‘foo::foo() [with T =|instantiated when used with
   |void]’: function body not   |NSDMI
   |available'  |
   Target Milestone|13.0|10.5
  Known to fail||12.2.0
  Known to work|12.2.0  |

--- Comment #6 from Andrew Pinski  ---
>On our box, I bisected this to r251422.  Surely that isn't the real cause of 
>the problem.

it is in the end as oh yes adding -fchecking=2 causes the failure in released
versions.