From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16257 invoked by alias); 27 Oct 2010 21:30:15 -0000 Received: (qmail 16240 invoked by uid 22791); 27 Oct 2010 21:30:13 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Oct 2010 21:30:09 +0000 From: "bkoz at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46203] New: constexpr weirdness w/ default ctors X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bkoz at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Date: Wed, 27 Oct 2010 21:30:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-10/txt/msg02338.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D46203 Summary: constexpr weirdness w/ default ctors Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: bkoz@gcc.gnu.org =46rom trunk, get these additional fails. FAIL: 23_containers/vector/ext_pointer/citerators.cc (test for excess error= s) FAIL: 29_atomics/atomic_address/cons/assign_neg.cc (test for excess errors) FAIL: 29_atomics/atomic_address/cons/copy_neg.cc (test for excess errors) FAIL: 29_atomics/atomic_address/cons/default.cc (test for excess errors) FAIL: 29_atomics/atomic_flag/cons/assign_neg.cc (test for excess errors) FAIL: 29_atomics/atomic_flag/cons/copy_neg.cc (test for excess errors) FAIL: 29_atomics/atomic_flag/cons/default.cc (test for excess errors) =3D=3D=3D libstdc++ Summary =3D=3D=3D # of expected passes 7977 # of unexpected failures 7 # of expected failures 84 # of unsupported tests 100 Looking at=20 FAIL: 29_atomics/atomic_address/cons/default.cc,=20 I see: In file included from /mnt/share/bld/gcc.git-trunk/x86_64-unknown-linux-gnu/libstdc++-v3/include/= atomic:42:0, from /mnt/share/src/gcc.git-trunk/libstdc++-v3/testsuite/29_atomics/atomic_flag/= cons/default.cc:20: /mnt/share/bld/gcc.git-trunk/x86_64-unknown-linux-gnu/libstdc++-v3/include/= bits/atomic_base.h: In constructor =E2=80=98constexpr std::__atomic_flag_base::__atomic_flag_ba= se()=E2=80=99: /mnt/share/bld/gcc.git-trunk/x86_64-unknown-linux-gnu/libstdc++-v3/include/= bits/atomic_base.h:58:18: error: uninitialized member =E2=80=98std::__atomic_flag_base::_M_i=E2=80=99= in =E2=80=98constexpr=E2=80=99 constructor In file included from /mnt/share/bld/gcc.git-trunk/x86_64-unknown-linux-gnu/libstdc++-v3/include/= atomic:81:0, from /mnt/share/src/gcc.git-trunk/libstdc++-v3/testsuite/29_atomics/atomic_flag/= cons/default.cc:20: /mnt/share/bld/gcc.git-trunk/x86_64-unknown-linux-gnu/libstdc++-v3/include/= bits/atomic_2.h: In constructor =E2=80=98constexpr std::__atomic2::atomic_flag::atomic_flag(= )=E2=80=99: /mnt/share/bld/gcc.git-trunk/x86_64-unknown-linux-gnu/libstdc++-v3/include/= bits/atomic_2.h:49:5: note: synthesized method =E2=80=98std::__atomic_flag_base::__atomic_flag_ba= se()=E2=80=99 first required here=20 /mnt/share/src/gcc.git-trunk/libstdc++-v3/testsuite/29_atomics/atomic_flag/= cons/default.cc: In function =E2=80=98int main()=E2=80=99: /mnt/share/src/gcc.git-trunk/libstdc++-v3/testsuite/29_atomics/atomic_flag/= cons/default.cc:25:44: note: synthesized method =E2=80=98constexpr std::__atomic2::atomic_flag::at= omic_flag()=E2=80=99 first required here These default ctors are not constexpr.