Thread overview
[Issue 1470] "extern (C)" inside function crashes gdc
Sep 04, 2007
d-bugmail
Oct 11, 2011
Iain Buclaw
September 04, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1470


braddr@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|DMD                         |glue layer
            Product|D                           |DGCC aka GDC
            Version|1.020                       |0.24




------- Comment #2 from braddr@puremagic.com  2007-09-04 14:02 -------
Reassigning to the right product, dgcc aka gdc


-- 

October 11, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=1470



--- Comment #3 from Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com> 2011-10-11 08:29:01 PDT ---
Created an attachment (id=1038)
Adding Ulrich Singer's testcase as file

Adding Ulrich Singer's testcase as file

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 11, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=1470


Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manuel.montezelo@gmail.com


--- Comment #4 from Manuel A. Fernandez Montecelo <manuel.montezelo@gmail.com> 2011-10-11 08:32:28 PDT ---
When using the extern outside the function, it works for me, otherwise it fails with a compilation error:

issue-1470.d:13: Error: function m.atol.atoll nested function missing body

So maybe it was a wrong syntax which now is disallowed, but previously was not properly handled, causing the ICE?  Anyway, this is additional info.

Details of my system:
-------------------------------------------------------------------------------- 
$ dpkg -l gdc-4.6 | grep ii
ii gdc-4.6 0.29.1-4.6.1-14 GNU D compiler, based on the GCC backend

$ uname -a
Linux mafm-laptop 3.0.0-2-amd64 #1 SMP Fri Oct 7 20:48:45 UTC 2011 x86_64
GNU/Linux
--------------------------------------------------------------------------------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 11, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=1470


Iain Buclaw <ibuclaw@ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #5 from Iain Buclaw <ibuclaw@ubuntu.com> 2011-10-11 11:58:33 PDT ---
Yep, that is correct. The code should never work.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------