public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67935] New: internal compiler error: Segmentation fault
@ 2015-10-12 14:36 niqingliang2003 at gmail dot com
  2015-10-13  9:35 ` [Bug c++/67935] " niqingliang2003 at gmail dot com
  2015-10-15  9:12 ` paolo.carlini at oracle dot com
  0 siblings, 2 replies; 3+ messages in thread
From: niqingliang2003 at gmail dot com @ 2015-10-12 14:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67935
           Summary: internal compiler error: Segmentation fault
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: niqingliang2003 at gmail dot com
  Target Milestone: ---

Created attachment 36484
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36484&action=edit
compiled with command: g++ -std=c++11 main.cpp

main.cpp is the smallest code for generating the compiling error.
compile command: g++ -std=c++11 main.cpp
platform: archlinux
gcc version: 5.2

error info:
internal compiler error: Segmentation fault
  void serialize(_T & o)

workaround 1:
change 'typedef struct { ... } base_t' to 'typedef struct xxx {...} base_t'

workaround 2:
move the '#include <array>' in the first line.


when change the 'array' to 'vector' (both header and declaration of 'p' in
base_t), result become:

internal compiler error: Segmentation fault
 typedef struct {
                ^


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

end of thread, other threads:[~2015-10-15  9:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-12 14:36 [Bug c++/67935] New: internal compiler error: Segmentation fault niqingliang2003 at gmail dot com
2015-10-13  9:35 ` [Bug c++/67935] " niqingliang2003 at gmail dot com
2015-10-15  9:12 ` 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).