public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28267]  New: [4.0/4.1/4.2 regression] ICE on invalid default variable in operator new
@ 2006-07-05 12:22 reichelt at gcc dot gnu dot org
  2006-07-05 14:48 ` [Bug c++/28267] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-05 12:22 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers a segfault since GCC 4.0.0:

============================================================
struct A
{
  void* operator new(__SIZE_TYPE__, int = X);
  void operator delete(void*, int);

  A();
};

void foo()
{
  new A;
}
============================================================

bug.cc:3: error: 'X' was not declared in this scope
bug.cc: In function 'void foo()':
bug.cc:11: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

Maybe related to PR 28266.


-- 
           Summary: [4.0/4.1/4.2 regression] ICE on invalid default variable
                    in operator new
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2006-08-03 12:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-05 12:22 [Bug c++/28267] New: [4.0/4.1/4.2 regression] ICE on invalid default variable in operator new reichelt at gcc dot gnu dot org
2006-07-05 14:48 ` [Bug c++/28267] " pinskia at gcc dot gnu dot org
2006-07-17  3:07 ` mmitchel at gcc dot gnu dot org
2006-08-01 23:45 ` reichelt at gcc dot gnu dot org
2006-08-01 23:51 ` [Bug c++/28267] [4.0/4.1 " reichelt at gcc dot gnu dot org
2006-08-03 11:34 ` reichelt at gcc dot gnu dot org
2006-08-03 11:36 ` reichelt at gcc dot gnu dot org
2006-08-03 12:05 ` reichelt at gcc dot gnu dot 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).