The new g++.dg/torture/pr44972.C fails to compile at all optimization levels on
x86_64-apple-darwin10...

FAIL: g++.dg/torture/pr44972.C  -O0  (test for excess errors)
FAIL: g++.dg/torture/pr44972.C  -O1  (test for excess errors)
FAIL: g++.dg/torture/pr44972.C  -O2  (test for excess errors)
FAIL: g++.dg/torture/pr44972.C  -O3 -fomit-frame-pointer  (test for excess
errors)
FAIL: g++.dg/torture/pr44972.C  -O3 -g  (test for excess errors)
FAIL: g++.dg/torture/pr44972.C  -Os  (test for excess errors)
FAIL: g++.dg/torture/pr44972.C  -O2 -flto  (test for excess errors)
FAIL: g++.dg/torture/pr44972.C  -O2 -fwhopr  (test for excess errors)

The failures are of the form...


/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/testsuite/g++/../../g++
-B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/gcc/testsuite/g++/../../
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20100910/gcc/testsuite/g++.dg/torture/pr44972.C
-nostdinc++
-I/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/x86_64-apple-darwin10.5.0/i386/libstdc++-v3/include/x86_64-apple-darwin10.5.0
-I/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/x86_64-apple-darwin10.5.0/i386/libstdc++-v3/include
-I/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20100910/libstdc++-v3/libsupc++
-I/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20100910/libstdc++-v3/include/backward
-I/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20100910/libstdc++-v3/testsuite/util
-fmessage-length=0 -O0 -S -m32 -o pr44972.s
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20100910/gcc/testsuite/g++.dg/torture/pr44972.C:
In member function ‘const T* boost::optional<T>::operator->() const [with T =
std::pair<NT, NT>]Â’:
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20100910/gcc/testsuite/g++.dg/torture/pr44972.C:137:9:
  instantiated from here
/sw/src/fink.build/gcc46-4.6.0-1000/gcc-4.6-20100910/gcc/testsuite/g++.dg/torture/pr44972.C:77:35:
error: ‘__assert_fail’ was not declared in this scope

Using built-in specs.
COLLECT_GCC=g++-4
COLLECT_LTO_WRAPPER=/sw/lib/gcc4.6/libexec/gcc/x86_64-apple-darwin10.5.0/4.6.0/lto-wrapper
Target: x86_64-apple-darwin10.5.0
Configured with: ../gcc-4.6-20100910/configure --prefix=/sw
--prefix=/sw/lib/gcc4.6 --mandir=/sw/share/man --infodir=/sw/lib/gcc4.6/info
--enable-languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw
--with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw
--with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
--program-suffix=-fsf-4.6 --enable-checking=yes
Thread model: posix
gcc version 4.6.0 20100910 (experimental) (GCC)


-- 
           Summary: pr44972.C fails with error: ‘__assert_fail’ was not
                    declared in this scope
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: x86_64-apple-darwin10
  GCC host triplet: x86_64-apple-darwin10
GCC target triplet: x86_64-apple-darwin10


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

Reply via email to