public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57005] New: alias template's pseudo-destructor is rejected
@ 2013-04-19 13:52 omawarisan.bokudesu at live dot jp
  2013-04-20 18:56 ` [Bug c++/57005] " redi at gcc dot gnu.org
  2024-04-04  6:45 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: omawarisan.bokudesu at live dot jp @ 2013-04-19 13:52 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 57005
           Summary: alias template's pseudo-destructor is rejected
    Classification: Unclassified
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: omawarisan.bokudesu@live.jp


"g++ -std=c++11" does not allow the following pseudo-destructor call.

template <class T>
using type = T;

int main()
{
    type<int>().~type<int>();
}


Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/home/user/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --prefix=/home/user/gcc-trunk
--disable-bootstrap --disable-multilib --enable-languages=c,c++,fortran
--with-gmp=/home/user/gcc-trunk/src/build/backends
--with-mpfr=/home/user/gcc-trunk/src/build/backends
--with-mpc=/home/user/gcc-trunk/src/build/backends
Thread model: posix
gcc version 4.9.0 20130419 (experimental) (GCC)


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

* [Bug c++/57005] alias template's pseudo-destructor is rejected
  2013-04-19 13:52 [Bug c++/57005] New: alias template's pseudo-destructor is rejected omawarisan.bokudesu at live dot jp
@ 2013-04-20 18:56 ` redi at gcc dot gnu.org
  2024-04-04  6:45 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: redi at gcc dot gnu.org @ 2013-04-20 18:56 UTC (permalink / raw)
  To: gcc-bugs


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-04-20
     Ever Confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-04-20 18:56:11 UTC ---
I'm not 100% sure, but I think it's valid and should compile


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

* [Bug c++/57005] alias template's pseudo-destructor is rejected
  2013-04-19 13:52 [Bug c++/57005] New: alias template's pseudo-destructor is rejected omawarisan.bokudesu at live dot jp
  2013-04-20 18:56 ` [Bug c++/57005] " redi at gcc dot gnu.org
@ 2024-04-04  6:45 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-04  6:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
MSVC also rejects it.

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

end of thread, other threads:[~2024-04-04  6:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-19 13:52 [Bug c++/57005] New: alias template's pseudo-destructor is rejected omawarisan.bokudesu at live dot jp
2013-04-20 18:56 ` [Bug c++/57005] " redi at gcc dot gnu.org
2024-04-04  6:45 ` pinskia 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).