[Bug 287] New: ice-on-valid: segfault when taking the address of a delegate

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Wed Mar 21 05:48:52 UTC 2018


https://bugzilla.gdcproject.org/show_bug.cgi?id=287

            Bug ID: 287
           Summary: ice-on-valid: segfault when taking the address of a
                    delegate
           Product: GDC
           Version: development
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw at gdcproject.org
          Reporter: sebastien.alaiwan at gmail.com

$ cat yo.d
class A
{
  void f()
  {
    class B
    {
      void g()
      {
        auto crash = &f;
      }
    }
  }
}

$ gdc yo.d
yo.d: In function ‘g’:
yo.d:9:14: internal compiler error: Segmentation fault
         auto crash = &f;
              ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.

$ gdc --version
gdc (Debian 7.3.0-11) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the D.gnu mailing list