Bug 12192 – Wrong interface file content generated that crashes compiler

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2014-02-18T08:09:53Z
Last change time
2020-03-21T03:56:32Z
Keywords
ice
Assigned to
No Owner
Creator
tcak

Attachments

IDFilenameSummaryContent-TypeSize
1326app.dProgramme source codetext/x-dsrc26
1327lib.dLibrary source codetext/x-dsrc49
1328lib.diGenerated interface filetext/x-dsrc73
1329makefileUsed makefileapplication/octet-stream145
1330makeresult.txtOutput of maketext/plain237

Comments

Comment #0 by dy70swq+kzut3k — 2014-02-18T08:09:53Z
Created attachment 1326 Programme source code I have written a shared library and a programme to use it. While compiling the library file, "-H" flag is used to generate interface file. Compiler generates wrong content, eats some of the codes. After this, while the programme is being compiled, compiler crashes with a segmentation error. Version: 2.064.2 OS: Ubuntu 13.10 Source codes are: lib.d, app.d Generated Interface file: lib.di Used makefile: makefile Output of make: makeresult.txt Source codes are reduced to make it as clear as possible. No matter where I put that static destructor, compiler eats it all the time.
Comment #1 by dy70swq+kzut3k — 2014-02-18T08:10:35Z
Created attachment 1327 Library source code
Comment #2 by dy70swq+kzut3k — 2014-02-18T08:11:04Z
Created attachment 1328 Generated interface file
Comment #3 by dy70swq+kzut3k — 2014-02-18T08:11:31Z
Created attachment 1329 Used makefile
Comment #4 by dy70swq+kzut3k — 2014-02-18T08:11:55Z
Created attachment 1330 Output of make
Comment #5 by b2.temp — 2019-06-29T16:47:20Z
no crash anymore