Opened 10 years ago

#7953 new Bugs

phoenix & std::valarray leads to a segfault

Reported by: Philipp Schwaha <philipp@…> Owned by: Thomas Heller
Milestone: To Be Determined Component: phoenix
Version: Boost Development Trunk Severity: Problem
Keywords: phoenix, std::valarray, segfault Cc:

Description

A phoenix expression [1] applied to valarray<double> [2] leads to a segfault.

[1] boost::phoenix::at_c<0>(arg1) += boost::phoenix::at_c<1>(arg1) / val(mass) * arg2

[2] std::tuple<std::valarray<double>, std::valarray<double>>

A simple example is attached triggering the problem. (When compiled with gcc 4.6 or 4.7)

Attachments (1)

minimum.cpp (1.3 KB ) - added by Philipp Schwaha <philipp@…> 10 years ago.

Download all attachments as: .zip

Change History (1)

by Philipp Schwaha <philipp@…>, 10 years ago

Attachment: minimum.cpp added
Note: See TracTickets for help on using tickets.