Bug creation and email sending has been disabled, file new bugs at gcc.gnu.org/bugzilla
Bug 30 - Finalization failure in complex case
Summary: Finalization failure in complex case
Status: RESOLVED FIXED
Alias: None
Product: GDC
Classification: Unclassified
Component: gdc (show other bugs)
Version: development
Hardware: x86_64 Linux
: --- normal
Assignee: Iain Buclaw
URL:
Depends on:
Blocks:
 
Reported: 2012-12-28 09:19 CET by David Brown
Modified: 2013-04-12 12:43 CEST (History)
1 user (show)

See Also:


Attachments
Minimal failure example code. (950 bytes, text/x-dsrc)
2012-12-28 09:19 CET, David Brown
Details
Failure output from example program. (4.76 KB, application/octet-stream)
2012-12-28 09:21 CET, David Brown
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Brown 2012-12-28 09:19:53 CET
Created attachment 19 [details]
Minimal failure example code.

The attached file 'failure.d' when compiled with

  gdc -O3 -o failure failure.d

causes a failure on the finalization of the scope class.  The failure only happens with -O3, and I am unable to remove any other parts of the test case and still see the failure.

If I change the main block to a 'unittest { ... }' block, add a dummy main, and add -funittest to the compilation, I also get a failure with different output.

The exception output contains binary data, some of which appears to be my environment variables.  I will attempt to attache the output after creating the bug, since it is binary.

I'm using gdc built by the Arch 'gdc-git' AUR, which has build
commit f07f442764d26104b4ab047858982a13903ef7a4
Merge: 102ab27 cd3e24b
Author: Iain Buclaw <ibuclaw@ubuntu.com>
Date:   Fri Dec 7 12:56:01 2012 -0800

    Merge pull request #40 from lomereiter/new_gcc_vec_api

on top of gcc-4.8-20121118, with the only modification being to edit the dynamic linker name per Arch conventions.  The architecture is Amd64.
Comment 1 David Brown 2012-12-28 09:21:08 CET
Created attachment 20 [details]
Failure output from example program.
Comment 2 Iain Buclaw 2013-04-12 12:43:28 CEST
Can no longer reproduce.