public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50973] New: [C++11] internal compiler error defaulted destructor virtual inheritance
@ 2011-11-03  3:25 jarrydb at cse dot unsw.edu.au
  2011-11-10  0:13 ` [Bug c++/50973] [C++0x] " jason at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jarrydb at cse dot unsw.edu.au @ 2011-11-03  3:25 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50973
           Summary: [C++11] internal compiler error defaulted destructor
                    virtual inheritance
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jarrydb@cse.unsw.edu.au


The following code causes an internal compiler error:


class HD
{
  public:
  virtual ~HD() {};
};
class InputHD : public virtual HD
{
};
class OutputHD : public virtual HD
{
};
class IOHD : public InputHD, public OutputHD
{
};
template <typename T, unsigned int N>
class ArrayNHD : public IOHD
{
  public:
  ~ArrayNHD() = default;
};
class TLText
{
  ~TLText();
  ArrayNHD<int, 1>* m_argsHD;
};
TLText::~TLText()
{
  delete m_argsHD;
}


g++ -std=gnu++11 -c tltext-min4.ii

tltext-min4.ii:29:1: internal compiler error: in
function_and_variable_visibility, at ipa.c:869
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


gcc -v

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/jarrydb/current/soft/install-latest/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/jarrydb/current/soft/src/gcc-git/configure
--prefix=/home/jarrydb/current/soft/install-latest --disable-multilib
--enable-languages=c,c++
Thread model: posix
gcc version 4.7.0 20111102 (experimental) (GCC)


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

* [Bug c++/50973] [C++0x] internal compiler error defaulted destructor virtual inheritance
  2011-11-03  3:25 [Bug c++/50973] New: [C++11] internal compiler error defaulted destructor virtual inheritance jarrydb at cse dot unsw.edu.au
@ 2011-11-10  0:13 ` jason at gcc dot gnu.org
  2011-11-10 21:20 ` jason at gcc dot gnu.org
  2011-11-10 23:53 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2011-11-10  0:13 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011-11-09
                 CC|                            |jason at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |jason at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1


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

* [Bug c++/50973] [C++0x] internal compiler error defaulted destructor virtual inheritance
  2011-11-03  3:25 [Bug c++/50973] New: [C++11] internal compiler error defaulted destructor virtual inheritance jarrydb at cse dot unsw.edu.au
  2011-11-10  0:13 ` [Bug c++/50973] [C++0x] " jason at gcc dot gnu.org
@ 2011-11-10 21:20 ` jason at gcc dot gnu.org
  2011-11-10 23:53 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2011-11-10 21:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-11-10 21:14:49 UTC ---
Author: jason
Date: Thu Nov 10 21:14:42 2011
New Revision: 181272

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181272
Log:
    PR c++/50973
    * decl2.c (mark_used): Defer synthesis of virtual functions.
    * method.c (use_thunk): Make sure the target function has
    DECL_INTERFACE_KNOWN.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/defaulted33.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl2.c
    trunk/gcc/cp/method.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/50973] [C++0x] internal compiler error defaulted destructor virtual inheritance
  2011-11-03  3:25 [Bug c++/50973] New: [C++11] internal compiler error defaulted destructor virtual inheritance jarrydb at cse dot unsw.edu.au
  2011-11-10  0:13 ` [Bug c++/50973] [C++0x] " jason at gcc dot gnu.org
  2011-11-10 21:20 ` jason at gcc dot gnu.org
@ 2011-11-10 23:53 ` jason at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2011-11-10 23:53 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-11-10 22:49:37 UTC ---
Fixed.


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

end of thread, other threads:[~2011-11-10 22:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-03  3:25 [Bug c++/50973] New: [C++11] internal compiler error defaulted destructor virtual inheritance jarrydb at cse dot unsw.edu.au
2011-11-10  0:13 ` [Bug c++/50973] [C++0x] " jason at gcc dot gnu.org
2011-11-10 21:20 ` jason at gcc dot gnu.org
2011-11-10 23:53 ` 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).