public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56961] New: cycle between do_spec_1() / process_brace_body() / handle_braces()
@ 2013-04-15  7:39 dimhen at gmail dot com
  2013-04-15  7:45 ` [Bug c++/56961] Segfault with volatile field pinskia at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: dimhen at gmail dot com @ 2013-04-15  7:39 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56961

             Bug #: 56961
           Summary: cycle between do_spec_1() / process_brace_body() /
                    handle_braces()
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dimhen@gmail.com


$ cat x.cpp 
struct foo { };
  typedef struct
  {
      volatile foo fields;
  }
  CSPHandleState;
  CSPHandleState a;
  void
  fn1 ()
  {
      CSPHandleState b;
      b.fields = foo();
  }


$ g++ -O0 -c x.cpp 
x.cpp: In function 'void fn1()':
x.cpp:12:16: error: passing 'volatile foo' as 'this' argument of 'foo&
foo::operator=(const foo&)' discards qualifiers [-fpermissive]
       b.fields = foo();
                ^
g++: internal compiler error: Segmentation fault (program cc1plus)
0x40950c execute
    /home/dimhen/src/gcc-current/gcc/gcc.c:2822
0x409769 do_spec_1
    /home/dimhen/src/gcc-current/gcc/gcc.c:4614
0x40c4d9 process_brace_body
    /home/dimhen/src/gcc-current/gcc/gcc.c:5871
0x40c4d9 handle_braces
    /home/dimhen/src/gcc-current/gcc/gcc.c:5785
0x40a1fa do_spec_1
    /home/dimhen/src/gcc-current/gcc/gcc.c:5268
0x40c4d9 process_brace_body
    /home/dimhen/src/gcc-current/gcc/gcc.c:5871
0x40c4d9 handle_braces
    /home/dimhen/src/gcc-current/gcc/gcc.c:5785
0x40a1fa do_spec_1
    /home/dimhen/src/gcc-current/gcc/gcc.c:5268
0x40a5eb do_spec_1
    /home/dimhen/src/gcc-current/gcc/gcc.c:5373
0x40c4d9 process_brace_body
    /home/dimhen/src/gcc-current/gcc/gcc.c:5871
0x40c4d9 handle_braces
    /home/dimhen/src/gcc-current/gcc/gcc.c:5785
0x40a1fa do_spec_1
    /home/dimhen/src/gcc-current/gcc/gcc.c:5268
0x40c4d9 process_brace_body
    /home/dimhen/src/gcc-current/gcc/gcc.c:5871
0x40c4d9 handle_braces
    /home/dimhen/src/gcc-current/gcc/gcc.c:5785
0x40a1fa do_spec_1
    /home/dimhen/src/gcc-current/gcc/gcc.c:5268
0x40c4d9 process_brace_body
    /home/dimhen/src/gcc-current/gcc/gcc.c:5871
0x40c4d9 handle_braces
    /home/dimhen/src/gcc-current/gcc/gcc.c:5785
0x40a1fa do_spec_1
    /home/dimhen/src/gcc-current/gcc/gcc.c:5268
0x40c4d9 process_brace_body
    /home/dimhen/src/gcc-current/gcc/gcc.c:5871
0x40c4d9 handle_braces
    /home/dimhen/src/gcc-current/gcc/gcc.c:5785
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Thanks to David Blaikie for reduced testcase
(http://lists.cs.uiuc.edu/pipermail/cfe-users/2013-April/000085.html)


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

end of thread, other threads:[~2014-06-05 17:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-15  7:39 [Bug c++/56961] New: cycle between do_spec_1() / process_brace_body() / handle_braces() dimhen at gmail dot com
2013-04-15  7:45 ` [Bug c++/56961] Segfault with volatile field pinskia at gcc dot gnu.org
2013-04-15  7:50 ` [Bug c++/56961] stack overflow in gimplifier " pinskia at gcc dot gnu.org
2013-04-15  8:01 ` dimhen at gmail dot com
2014-01-06 19:33 ` dimhen at gmail dot com
2014-06-05 12:16 ` paolo.carlini at oracle dot com
2014-06-05 12:29 ` rguenth at gcc dot gnu.org
2014-06-05 12:33 ` rguenth at gcc dot gnu.org
2014-06-05 12:35 ` rguenth at gcc dot gnu.org
2014-06-05 12:39 ` rguenth at gcc dot gnu.org
2014-06-05 14:16 ` paolo.carlini at oracle dot com
2014-06-05 17:35 ` paolo at gcc dot gnu.org
2014-06-05 17:36 ` paolo.carlini at oracle dot com

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).