public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46203] constexpr weirdness w/ default ctors
  2010-10-27 21:30 [Bug c++/46203] New: constexpr weirdness w/ default ctors bkoz at gcc dot gnu.org
@ 2010-10-27 21:30 ` bkoz at gcc dot gnu.org
  2010-10-28 17:46 ` bkoz at gcc dot gnu.org
  2010-11-01 16:45 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: bkoz at gcc dot gnu.org @ 2010-10-27 21:30 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Benjamin Kosnik <bkoz at gcc dot gnu.org> 2010-10-27 21:30:29 UTC ---
Created attachment 22182
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22182
pre-processed sources


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/46203] New: constexpr weirdness w/ default ctors
@ 2010-10-27 21:30 bkoz at gcc dot gnu.org
  2010-10-27 21:30 ` [Bug c++/46203] " bkoz at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bkoz at gcc dot gnu.org @ 2010-10-27 21:30 UTC (permalink / raw)
  To: gcc-bugs

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

           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


From trunk, get these additional fails.

FAIL: 23_containers/vector/ext_pointer/citerators.cc (test for excess errors)
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)

        === libstdc++ Summary ===

# of expected passes        7977
# of unexpected failures    7
# of expected failures        84
# of unsupported tests        100

Looking at 

FAIL: 29_atomics/atomic_address/cons/default.cc, 

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 ‘constexpr std::__atomic_flag_base::__atomic_flag_base()’:
/mnt/share/bld/gcc.git-trunk/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/atomic_base.h:58:18:
error: uninitialized member ‘std::__atomic_flag_base::_M_i’ in ‘constexpr’
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 ‘constexpr std::__atomic2::atomic_flag::atomic_flag()’:
/mnt/share/bld/gcc.git-trunk/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/atomic_2.h:49:5:
note: synthesized method ‘std::__atomic_flag_base::__atomic_flag_base()’ first
required here 
/mnt/share/src/gcc.git-trunk/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/default.cc:
In function ‘int main()’:
/mnt/share/src/gcc.git-trunk/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/default.cc:25:44:
note: synthesized method ‘constexpr std::__atomic2::atomic_flag::atomic_flag()’
first required here


These default ctors are not constexpr.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/46203] constexpr weirdness w/ default ctors
  2010-10-27 21:30 [Bug c++/46203] New: constexpr weirdness w/ default ctors bkoz at gcc dot gnu.org
  2010-10-27 21:30 ` [Bug c++/46203] " bkoz at gcc dot gnu.org
@ 2010-10-28 17:46 ` bkoz at gcc dot gnu.org
  2010-11-01 16:45 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: bkoz at gcc dot gnu.org @ 2010-10-28 17:46 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Benjamin Kosnik <bkoz at gcc dot gnu.org> 2010-10-28 17:46:29 UTC ---

Only with --disable-checking


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/46203] constexpr weirdness w/ default ctors
  2010-10-27 21:30 [Bug c++/46203] New: constexpr weirdness w/ default ctors bkoz at gcc dot gnu.org
  2010-10-27 21:30 ` [Bug c++/46203] " bkoz at gcc dot gnu.org
  2010-10-28 17:46 ` bkoz at gcc dot gnu.org
@ 2010-11-01 16:45 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2010-11-01 16:45 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2010-11-01 16:45:44 UTC ---
Should be fixed now.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-01 16:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-27 21:30 [Bug c++/46203] New: constexpr weirdness w/ default ctors bkoz at gcc dot gnu.org
2010-10-27 21:30 ` [Bug c++/46203] " bkoz at gcc dot gnu.org
2010-10-28 17:46 ` bkoz at gcc dot gnu.org
2010-11-01 16:45 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).