www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 204] New: GDC crashes when a concrete class only declare a

Date: Wed, 9 Dec 2015 09:12:34 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable


            Bug ID: 204
           Summary: GDC crashes when a concrete class only declare a
                    interface method.
           Product: GDC
           Version: development
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: dorian.haglund gmail.com

The following snippet make gdc crash

interface I
  void f();

class C: I
  void f();

int main()
  return 0;

gdc outputs

"tmp/test.d: In member function =E2=80=98_DT16_D4test1C1fMFZv=E2=80=99:
/tmp/test.d:1:0: internal compiler error: Segmentation fault
 interface I
0xab44df crash_signal
0x88e61a fold_build_pointer_plus_hwi_loc(unsigned int, tree_node*, long)
0x7c669a thunk_adjust
0x7c780f cgraph_node::expand_thunk(bool, bool)
0x73aad2 finish_thunk(tree_node*, tree_node*, int)
0x72e10c FuncDeclaration::toThunkSymbol(int)
0x738dfb ClassDeclaration::toObjFile(bool)
0x73bfb6 Module::genobjfile(bool)
0x72d097 d_parse_file()
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.

"gdc --version" outputs "gdc (Debian 5.2.1-23) 5.2.1 20151028"
"head /etc/debian_version" outputs : "stretch/sid"

You are receiving this mail because:
You are watching all bug changes.
Dec 09 2015