public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/64100] New: A static assert using the the current class in a noexcept test leads to a segfault
@ 2014-11-28 10:57 ville.voutilainen at gmail dot com
  2014-12-03  9:49 ` [Bug c++/64100] " mpolacek at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: ville.voutilainen at gmail dot com @ 2014-11-28 10:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64100

            Bug ID: 64100
           Summary: A static assert using the the current class in a
                    noexcept test leads to a segfault
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ville.voutilainen at gmail dot com

template<typename> struct foo 
{ 
    static_assert(noexcept(((foo *)1)->~foo()), ""); 
}; 

template class foo<int>;

Clang diagnoses the use of the constructor of foo as an attempt to
use an incomplete type, gcc segfaults. See
http://melpon.org/wandbox/permlink/Xz0rchej4eij4tOA
for the actual trace.

This looks like a regression, since my build from 20141121 just silently
eats the code. 20141127 produces the segfault.


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

end of thread, other threads:[~2014-12-10 16:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-28 10:57 [Bug c++/64100] New: A static assert using the the current class in a noexcept test leads to a segfault ville.voutilainen at gmail dot com
2014-12-03  9:49 ` [Bug c++/64100] " mpolacek at gcc dot gnu.org
2014-12-03 10:38 ` ktietz at gcc dot gnu.org
2014-12-03 15:52 ` jakub at gcc dot gnu.org
2014-12-03 21:56 ` jason at gcc dot gnu.org
2014-12-04 11:22 ` ktietz at gcc dot gnu.org
2014-12-10 11:23 ` ktietz at gcc dot gnu.org
2014-12-10 11:27 ` ktietz at gcc dot gnu.org
2014-12-10 16:28 ` ktietz 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).