public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61019] New: ICE: incomplete type of class template as pseudo-destructor-name
@ 2014-04-30 17:08 frankhb1989 at gmail dot com
  2014-04-30 17:11 ` [Bug c++/61019] " frankhb1989 at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: frankhb1989 at gmail dot com @ 2014-04-30 17:08 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61019
           Summary: ICE: incomplete type of class template as
                    pseudo-destructor-name
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: frankhb1989 at gmail dot com

Case:

template<class>
struct S
{
    static_assert(((S*)0)->~S(), "");
};

S<int> b;

Result:

T:\>D:\MinGW\bin\g++.exe a.cc -std=c++11                           
a.cc: In instantiation of 'struct S<int>':                         
a.cc:7:8:   required from here                                     
a.cc:3:1: internal compiler error: Segmentation fault              
 {                                                                 
 ^                                                                 
libbacktrace could not find executable to open                     
Please submit a full bug report,                                   
with preprocessed source if appropriate.                           
See <http://sourceforge.net/projects/mingw-w64> for instructions.

Envrionment:
Win2012r2 x64 with i686-w64-mingw32-g++ 4.9.0.

T:\>D:\MinGW\bin\g++.exe -v
Using built-in specs.
COLLECT_GCC=D:\MinGW\bin\g++.exe
COLLECT_LTO_WRAPPER=D:/MinGW/bin/../libexec/gcc/i686-w64-mingw32/4.9.0/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-4.9.0/configure --host=i686-w64-mingw32
--build=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/mingw32
--with-sysroot=/c/mingw490/i686-490-posix-dwarf-rt_v3-rev
1/mingw32 --with-gxx-include-dir=/mingw32/i686-w64-mingw32/include/c++
--enable-shared --enable-static --disable-multilib
--enable-languages=ada,c,c++,fortran,objc,obj-c++,lto --enable-libstdcxx-time=
yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto
--enable-graphite --enable-checking=release --enable-fully-dynamic-string
--enable-version-specific-runtime-libs --disable-s
jlj-exceptions --with-dwarf2 --disable-isl-version-check
--disable-cloog-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug
--enable-bootstrap --disable-rpath --disable-win32-registry --d
isable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld
--with-arch=i686 --with-tune=generic --with-libiconv --with-system-zlib
--with-gmp=/c/mingw490/prerequisites/i686-w64-mingw32-
static --with-mpfr=/c/mingw490/prerequisites/i686-w64-mingw32-static
--with-mpc=/c/mingw490/prerequisites/i686-w64-mingw32-static
--with-isl=/c/mingw490/prerequisites/i686-w64-mingw32-static --with-cl
oog=/c/mingw490/prerequisites/i686-w64-mingw32-static
--enable-cloog-backend=isl --with-pkgversion='i686-posix-dwarf-rev1, Built by
MinGW-W64 project' --with-bugurl=http://sourceforge.net/projects/min
gw-w64 CFLAGS='-O2 -pipe
-I/c/mingw490/i686-490-posix-dwarf-rt_v3-rev1/mingw32/opt/include
-I/c/mingw490/prerequisites/i686-zlib-static/include
-I/c/mingw490/prerequisites/i686-w64-mingw32-static/incl
ude' CXXFLAGS='-O2 -pipe
-I/c/mingw490/i686-490-posix-dwarf-rt_v3-rev1/mingw32/opt/include
-I/c/mingw490/prerequisites/i686-zlib-static/include
-I/c/mingw490/prerequisites/i686-w64-mingw32-static/incl
ude' CPPFLAGS= LDFLAGS='-pipe
-L/c/mingw490/i686-490-posix-dwarf-rt_v3-rev1/mingw32/opt/lib
-L/c/mingw490/prerequisites/i686-zlib-static/lib
-L/c/mingw490/prerequisites/i686-w64-mingw32-static/lib'   
Thread model: posix
gcc version 4.9.0 (i686-posix-dwarf-rev1, Built by MinGW-W64 project)


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

* [Bug c++/61019] ICE: incomplete type of class template as pseudo-destructor-name
  2014-04-30 17:08 [Bug c++/61019] New: ICE: incomplete type of class template as pseudo-destructor-name frankhb1989 at gmail dot com
@ 2014-04-30 17:11 ` frankhb1989 at gmail dot com
  2014-11-23 14:47 ` paolo.carlini at oracle dot com
  2014-12-12 19:59 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: frankhb1989 at gmail dot com @ 2014-04-30 17:11 UTC (permalink / raw)
  To: gcc-bugs

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

frankhb1989 at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.8.2, 4.9.0

--- Comment #1 from frankhb1989 at gmail dot com ---
GCC 4.8.2 (Rev7, Built by MSYS2 project) also fails.


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

* [Bug c++/61019] ICE: incomplete type of class template as pseudo-destructor-name
  2014-04-30 17:08 [Bug c++/61019] New: ICE: incomplete type of class template as pseudo-destructor-name frankhb1989 at gmail dot com
  2014-04-30 17:11 ` [Bug c++/61019] " frankhb1989 at gmail dot com
@ 2014-11-23 14:47 ` paolo.carlini at oracle dot com
  2014-12-12 19:59 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-11-23 14:47 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-11-23
     Ever confirmed|0                           |1


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

* [Bug c++/61019] ICE: incomplete type of class template as pseudo-destructor-name
  2014-04-30 17:08 [Bug c++/61019] New: ICE: incomplete type of class template as pseudo-destructor-name frankhb1989 at gmail dot com
  2014-04-30 17:11 ` [Bug c++/61019] " frankhb1989 at gmail dot com
  2014-11-23 14:47 ` paolo.carlini at oracle dot com
@ 2014-12-12 19:59 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-12-12 19:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
The ICE is fixed in mainline, but the location is still wrong.


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

end of thread, other threads:[~2014-12-12 19:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-30 17:08 [Bug c++/61019] New: ICE: incomplete type of class template as pseudo-destructor-name frankhb1989 at gmail dot com
2014-04-30 17:11 ` [Bug c++/61019] " frankhb1989 at gmail dot com
2014-11-23 14:47 ` paolo.carlini at oracle dot com
2014-12-12 19:59 ` paolo.carlini at oracle dot com

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).