public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94205] New: ICE in cxx_eval_constant_expression with 'this'-capturing lambda inside an NSDMI
@ 2020-03-17 19:28 ppalka at gcc dot gnu.org
  2020-03-17 19:34 ` [Bug c++/94205] [8/9/10 Regression] ICE in cxx_eval_constant_expression with 'this'-capturing lambda inside an NSDMI since r8-1251 jakub at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: ppalka at gcc dot gnu.org @ 2020-03-17 19:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94205
           Summary: ICE in cxx_eval_constant_expression with
                    'this'-capturing lambda inside an NSDMI
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ppalka at gcc dot gnu.org
  Target Milestone: ---

$ cat ice.C
struct S
{
  int a = [this] { this->a = 5; return 6; } ();
};


constexpr S s = {};
$ g++ -std=c++2a ice.C
ice.C:7:18: internal compiler error: in cxx_eval_constant_expression, at
cp/constexpr.c:6176
    7 | constexpr S s = {};          
      |                  ^                                                      
0x5fe2d0 cxx_eval_constant_expression    
        /home/patrick/code/gcc-master/gcc/cp/constexpr.c:6176
0x941f5f cxx_eval_constant_expression
        /home/patrick/code/gcc-master/gcc/cp/constexpr.c:5700
0x9413d6 cxx_eval_constant_expression                                           
        /home/patrick/code/gcc-master/gcc/cp/constexpr.c:5965
0x94eacf cxx_eval_bare_aggregate
        /home/patrick/code/gcc-master/gcc/cp/constexpr.c:3836
0x941f0f cxx_eval_constant_expression                                           
        /home/patrick/code/gcc-master/gcc/cp/constexpr.c:5930
0x943e5b cxx_eval_constant_expression
        /home/patrick/code/gcc-master/gcc/cp/constexpr.c:5552
0x941f5f cxx_eval_constant_expression
        /home/patrick/code/gcc-master/gcc/cp/constexpr.c:5700
0x94f4f3 cxx_bind_parameters_in_call
        /home/patrick/code/gcc-master/gcc/cp/constexpr.c:1525
0x93eb25 cxx_eval_call_expression
        /home/patrick/code/gcc-master/gcc/cp/constexpr.c:2294
0x94177d cxx_eval_constant_expression                                           
        /home/patrick/code/gcc-master/gcc/cp/constexpr.c:5472
0x94eacf cxx_eval_bare_aggregate                                                
        /home/patrick/code/gcc-master/gcc/cp/constexpr.c:3836
0x941f0f cxx_eval_constant_expression
        /home/patrick/code/gcc-master/gcc/cp/constexpr.c:5930
0x944b74 cxx_eval_outermost_constant_expr
        /home/patrick/code/gcc-master/gcc/cp/constexpr.c:6486

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

end of thread, other threads:[~2022-05-27  8:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-17 19:28 [Bug c++/94205] New: ICE in cxx_eval_constant_expression with 'this'-capturing lambda inside an NSDMI ppalka at gcc dot gnu.org
2020-03-17 19:34 ` [Bug c++/94205] [8/9/10 Regression] ICE in cxx_eval_constant_expression with 'this'-capturing lambda inside an NSDMI since r8-1251 jakub at gcc dot gnu.org
2020-03-31 17:50 ` jason at gcc dot gnu.org
2020-03-31 22:01 ` jason at gcc dot gnu.org
2020-04-01  5:18 ` cvs-commit at gcc dot gnu.org
2020-04-04 16:05 ` jason at gcc dot gnu.org
2020-04-04 16:18 ` cvs-commit at gcc dot gnu.org
2020-04-04 16:18 ` cvs-commit at gcc dot gnu.org
2020-04-04 16:21 ` ppalka at gcc dot gnu.org
2020-04-04 16:25 ` [Bug c++/94205] [8/9 " ppalka at gcc dot gnu.org
2021-05-14  9:53 ` [Bug c++/94205] [9 " jakub at gcc dot gnu.org
2021-06-01  8:16 ` rguenth at gcc dot gnu.org
2022-05-27  8:47 ` rguenth 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).