[Bug c++/56832] New: g++-4.7.2 falls over when compiling vector intialization list

2013-04-03 Thread williams.kevin at gmail dot com

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

 Bug #: 56832
   Summary: g++-4.7.2 falls over when compiling vector
intialization list
Classification: Unclassified
   Product: gcc
   Version: 4.7.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: williams.ke...@gmail.com


g++-4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



src$ g++-4.7 -std=c++11 runner.cpp -I/opt/cxxtest-4.1 -Iinclude
-I/usr/include/libxml2

In file included from runner.cpp:22:0:
/home/kwilliams/srcw/dacas/branches/appdetection/src/unit/appdetection/tcp/tcpsignature_test.h:
In member function ‘void
TcpSignatureTestSuite::test_validate_sequence_state_transitions_SingleSequenceNoEntryState_ReturnsFalse()’:
/home/kwilliams/srcw/dacas/branches/appdetection/src/unit/appdetection/tcp/tcpsignature_test.h:278:39:
internal compiler error: in force_constant_size, at gimplify.c:703
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.
Preprocessed source stored into /tmp/ccmrJONL.out file, please attach this to
your bugreport.
Traceback (most recent call last):
  File "/usr/share/apport/gcc_ice_hook", line 34, in 
pr.write(open(apport.fileutils.make_report_path(pr), 'w'))
  File "/usr/lib/python2.7/dist-packages/problem_report.py", line 251, in write
self._assert_bin_mode(file)
  File "/usr/lib/python2.7/dist-packages/problem_report.py", line 629, in
_assert_bin_mode
assert (type(file) == BytesIO or 'b' in file.mode), 'file stream must be in
binary mode'
AssertionError: file stream must be in binary mode

[Bug c++/56832] g++-4.7.2 falls over when compiling vector intialization list

2013-04-03 Thread williams.kevin at gmail dot com


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



--- Comment #2 from Kevin Williams  2013-04-03 
12:28:48 UTC ---

Created attachment 29793

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29793

preprocess dump from g++


[Bug c++/56832] g++-4.7.2 falls over when compiling vector intialization list

2013-04-03 Thread williams.kevin at gmail dot com


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



--- Comment #3 from Kevin Williams  2013-04-03 
12:29:46 UTC ---



Apologies, the file failed to attach the first time. Attached now.



(In reply to comment #2)

> Created attachment 29793 [details]

> preprocess dump from g++


[Bug c++/56832] g++-4.7.2 falls over when compiling vector intialization list

2013-04-03 Thread williams.kevin at gmail dot com


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



--- Comment #5 from Kevin Williams  2013-04-03 
12:48:58 UTC ---



The crash seems to only happen when the objects in the intializer list have

members of type std::bitset.



When I change this member to a std::set the code compiles fine.