path64/compiler — Issue #124: Compiler Goes Into An Infinite Loop with boost::phoenix
Author: FreddieWitherden
Created: 2011-11-04 23:47:42+00:00
State: open

The following snippet sends pathCC into an infinite loop:
#include

#include
#include
#include

using boost::phoenix::arg_names::arg1;

struct foo { foo(int a, int b) : a_(a), b_(b) {} int a_, b_; };

int main()
{
foo f = boost::phoenix::construct(1,arg1)(2);
std::cout << f.a_ << " " << f.b_ << "\n";
return 0;
}

pathCC version 4.0.11; header-only boost::phoenix from boost 1.47. Precise message is:

Assertion failure in file: /jenkins/workspace/Nightly_Ekopath/label_exp/Linux/src/compiler/GCC/libspin/gspin-tree.c, function: __gs, line: 397.
__gs() called with DOT