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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |5.4.0, 7.0
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|                            |2016-12-09
     Ever confirmed|0                           |1
            Summary|g++ segfaults when printing |[6 Regression] g++
                   |warning for captured        |segfaults when printing
                   |constexpr variable          |warning for captured
                   |                            |constexpr variable
   Target Milestone|---                         |6.3
      Known to fail|                            |6.2.0

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
> g++-6 t.C -B /abuild/rguenther/gcc6-g/gcc
t.C: In function ‘int main()’:
t.C:5:22: warning: capture of variable ‘foo’ with non-automatic storage
duration
       auto foobar = [foo](){return (double)foo;};
                      ^~~
‘
Segmentation fault
0x10af970 crash_signal
        /space/rguenther/src/svn/gcc-6-branch/gcc/toplev.c:333
0x8cd990 dump_simple_decl
        /space/rguenther/src/svn/gcc-6-branch/gcc/cp/error.c:965
0x8ce5b3 dump_decl
        /space/rguenther/src/svn/gcc-6-branch/gcc/cp/error.c:1071
0x8d79be decl_to_string
        /space/rguenther/src/svn/gcc-6-branch/gcc/cp/error.c:2973
0x8d9a14 cp_printer
        /space/rguenther/src/svn/gcc-6-branch/gcc/cp/error.c:3553
0x1ae257c pp_format(pretty_printer*, text_info*)
        /space/rguenther/src/svn/gcc-6-branch/gcc/pretty-print.c:632
0x1adb34e diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        /space/rguenther/src/svn/gcc-6-branch/gcc/diagnostic.c:823
0x1adb9e9 inform(unsigned int, char const*, ...)
        /space/rguenther/src/svn/gcc-6-branch/gcc/diagnostic.c:954
0x8f0b73 cp_parser_lambda_introducer
        /space/rguenther/src/svn/gcc-6-branch/gcc/cp/parser.c:9955
0x8f02e0 cp_parser_lambda_expression
        /space/rguenther/src/svn/gcc-6-branch/gcc/cp/parser.c:9711
0x8e5f34 cp_parser_primary_expression
        /space/rguenther/src/svn/gcc-6-branch/gcc/cp/parser.c:4935
...

Reply via email to