I got a segfault with a recent version of gcc 4.2 on x86_64.  It has gone away
recently but after investigating when it was introduced and fixed I got the
impression that this is a latent problem.

With the attached testcase, I can reproduce this segfault starting with r115200
until r115711.  As far as I can tell, neither of those changes are related so I
think the problem is latent.

(sid)585:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/g++ -c -O2 fityk-ast.ii
/usr/include/boost/spirit/core/impl/parser.ipp: In function
'boost::spirit::parse_info<const CharT*> boost::spirit::parse(const CharT*,
const boost::spirit::parser<DerivedT>&) [with CharT = char, DerivedT =
boost::spirit::sequence<boost::spirit::strlit<const char*>,
boost::spirit::contiguous<boost::spirit::sequence<boost::spirit::chlit<char>,
boost::spirit::action<boost::spirit::uint_parser<unsigned int, 10, 1u,
-0x00000000000000001>, boost::spirit::ref_value_actor<int,
boost::spirit::assign_action> > > > >]':
/usr/include/boost/spirit/core/impl/parser.ipp:40: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
zsh: exit 1     /usr/lib/gcc-snapshot/bin/g++ -c -O2 fityk-ast.ii
(sid)586:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/g++ -c -O1 fityk-ast.ii
(sid)587:[EMAIL PROTECTED]: ~]


-- 
           Summary: [4.2 regression] latent segfault in remove_phi_node
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com


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

Reply via email to