[Bug c++/54897] New: [4.8 Regression]: 23_containers/bitset/45713.cc (test for excess errors)

hp at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Oct 10 23:52:00 GMT 2012


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

             Bug #: 54897
           Summary: [4.8 Regression]: 23_containers/bitset/45713.cc (test
                    for excess errors)
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: ABI
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hp@gcc.gnu.org
              Host: x64_86-unknown-linux-gnu
            Target: cris-axis-elf


With revision 192137 this test passed.
>From revision 192147 and on, this test has failed as follows:

Running
/tmp/hpautotest-gcc1/gcc/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp
...
FAIL: 23_containers/bitset/45713.cc (test for excess errors)

With the message in the logfile being:

/tmp/hpautotest-gcc1/gcc/libstdc++-v3/testsuite/23_containers/bitset/45713.cc:24:55:
error: size of array 'test' is not\
 an integral constant-expression^M
 int test[sizeof(std::bitset<0xffffffff>) != 1 ? 1 : -1];^M
                                                       ^^M
compiler exited with status 1

FWIW, the cris-axis-elf ABI is effectively __attribute__ ((__packed__)).

Author of the only suspect patch in this revision range CC:ed.
(Did this patch change the ABI for some targets, Jakub?)

I'll attach a preprocessed file.



More information about the Gcc-bugs mailing list