[Bug c++/70100] New: internal compiler error: in execute, at cfgexpand.c:6066

2016-03-05 Thread shadewind at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70100

Bug ID: 70100
   Summary: internal compiler error: in execute, at
cfgexpand.c:6066
   Product: gcc
   Version: 5.3.0
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: shadewind at gmail dot com
  Target Milestone: ---

Created attachment 37877
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37877=edit
Preprocessed source

Internal Compiler error as follows:

FAILED: /usr/local/bin/g++-5-Wall -Werror -Wno-missing-braces -std=c++11 -g
-I../include -MMD -MT examples/database/CMakeFiles/database.dir/main.cpp.o -MF
examples/database/CMakeFiles/database.dir/main.cpp.o.d -o
examples/database/CMakeFiles/database.dir/main.cpp.o -c
../examples/database/main.cpp
In file included from ../include/rapidcheck/state/gen/ExecCommands.h:46:0,
 from ../include/rapidcheck/state.h:9,
 from ../examples/database/main.cpp:2:
../include/rapidcheck/state/gen/ExecCommands.hpp: In member function
'rc::Gen<std::shared_ptr >
rc::state::gen::detail::ExecOneOf<Cmd, Cmds>::operator()(const Args& ...) const
[with Args = {DatabaseModel}; Cmd = Open; Cmds = {Close, Put, BeginWrite,
ExecuteWrite, Get}; typename Cmd::CommandType =
rc::state::Command<DatabaseModel, Database>]':
../include/rapidcheck/state/gen/ExecCommands.hpp:39:14: internal compiler
error: in execute, at cfgexpand.c:6066
   Gen operator()(const Args &... args) const {
  ^

../include/rapidcheck/state/gen/ExecCommands.hpp:39:14: internal compiler
error: Abort trap: 6
g++-5: internal compiler error: Abort trap: 6 (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.


Included is preprocessed output.

[Bug c++/67244] internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:1801

2015-08-17 Thread shadewind at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67244

Emil Eriksson shadewind at gmail dot com changed:

   What|Removed |Added

 Status|RESOLVED|UNCONFIRMED
 Resolution|DUPLICATE   |---

--- Comment #2 from Emil Eriksson shadewind at gmail dot com ---
Are you absolutely sure this is a duplicate? The alleged duplicate involes a
member function call while this one does not. Also, this code works on 4.9
while the code in the duplicate is verified on 4.9. Unless I'm missing some
knowledge of the internals, these two seem like different bugs to me.


[Bug c++/67244] New: internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:1801

2015-08-16 Thread shadewind at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67244

Bug ID: 67244
   Summary: internal compiler error: in gimplify_var_or_parm_decl,
at gimplify.c:1801
   Product: gcc
   Version: 5.2.0
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: shadewind at gmail dot com
  Target Milestone: ---

Created attachment 36192
  -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=36192action=edit
The preprocessed source

Internal compiler error with GCC 5.2.0 when building the attached preprocessed
source on OS X 10.10.2:

build_gcc❯ g++-5 -std=c++11 Unique.pp.cpp -o test  
   
   
rapidcheck/git/dev 
../test/gen/ContainerTests/Unique.cpp: In lambda function:
../test/gen/ContainerTests/Unique.cpp:59:37: internal compiler error: in
gimplify_var_or_parm_decl, at gimplify.c:1801
 return std::count_if(begin(elements),
 ^

../test/gen/ContainerTests/Unique.cpp:59:37: internal compiler error: Abort
trap: 6
g++-5: internal compiler error: Abort trap: 6 (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See https://github.com/Homebrew/homebrew/issues for instructions.

[Bug c++/65992] New: Internal compiler error: in gimple_expand_cfg, at cfgexpand.c:5658

2015-05-03 Thread shadewind at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65992

Bug ID: 65992
   Summary: Internal compiler error: in gimple_expand_cfg, at
cfgexpand.c:5658
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: shadewind at gmail dot com
  Target Milestone: ---

Created attachment 35449
  -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35449action=edit
Preprocessed output

When compiling the attached preprocessed file, I get:

In file included from ../include/rapidcheck/gen/Build.h:71:0,
 from ../include/rapidcheck.h:20,
 from ../include/rapidcheck-catch.h:3,
 from ../test/gen/BuildTests.cpp:2:
../include/rapidcheck/gen/Build.hpp: In function 'rc::GenT
rc::gen::build(rc::GenT, const rc::gen::detail::BindingMembers ...) [with
T = {anonymous}::Foobarint; Members = {void
({anonymous}::Foobarint::*)(int), void ({anonymous}::Foobarint::*)(int,
int), int {anonymous}::Foobarint::*}]':
../include/rapidcheck/gen/Build.hpp:138:8: internal compiler error: in
gimple_expand_cfg, at cfgexpand.c:5658
 GenT build(GenT gen, const detail::BindingMembers ... bs) {
^

../include/rapidcheck/gen/Build.hpp:138:8: internal compiler error: Abort trap:
6

GCC version is:
g++-4.9 (Homebrew gcc 4.9.2_1) 4.9.2

However, I have also verified on:
gcc-5 (Ubuntu 5.1.0-0ubuntu11~14.04.1) 5.1.0

But then with message:
../include/rapidcheck/gen/Build.hpp:138:8: internal compiler error: in execute,
at cfgexpand.c:6044