It may be a duplicate of 31899.

Compiling Boost lambda library test control_structures.cpp with -g results in
"internal compiler error: in reference_to_unused, at dwarf2out.c:10010".
Without -g, it compiles cleanly. This is on HP-UX ia64 with gcc 4.2.1

How to reproduce: download Boost 1.34.1 and run x.sh below with
BOOST_BUILD_PATH env. variable pointing to the Boost tree. As of this writing,
the problem is also reproducible with sources from Boost SVN trunk  

x.sh
----
#!/bin/sh -x
export BOOST_BUILD_PATH="/proj/acxx/borisg/boost-v27/regression"
cd $BOOST_BUILD_PATH/boost/libs
g++ -g -c -I.. ../libs/lambda/test/control_structures.cpp

Snapshot:
---------
bash-2.03$ uname -a
HP-UX hpadl901 B.11.23 U ia64 2728209989 unlimited-user license
bash-2.03$ g++ --version
g++ (GCC) 4.2.1
Copyright (C) 2007 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.

bash-2.03$ x.sh
+ export BOOST_BUILD_PATH=/proj/acxx/borisg/boost-v27/regression
+ cd /proj/acxx/borisg/boost-v27/regression/boost/libs
+ g++ -g -c -I.. ../libs/lambda/test/control_structures.cpp
../libs/lambda/test/control_structures.cpp:27: internal compiler error: in
reference_to_unused, at dwarf2out.c:10010
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
bash-2.03$ cat x.sh
#!/bin/sh -x
export BOOST_BUILD_PATH="/proj/acxx/borisg/boost-v27/regression"
cd $BOOST_BUILD_PATH/boost/libs
g++ -g -c -I.. ../libs/lambda/test/control_structures.cpp
bash-2.03$


-- 
           Summary: ICE with -g on legal code: Boost lambda library test
                    control_structures.cpp
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: boris dot gubenko at hp dot com


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

Reply via email to