Bug 16421 – DMD hides linker error when enabling warnings

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-08-23T20:00:00Z
Last change time
2016-08-24T20:00:19Z
Assigned to
nobody
Creator
niklas.volcz

Attachments

IDFilenameSummaryContent-TypeSize
1611bug.dcodetext/x-dsrc658

Comments

Comment #0 by niklas.volcz — 2016-08-23T20:00:59Z
Created attachment 1611 code When compiling the attached program using DMD with the -w flag no error message is printed, only one warning and one deprecation warning from the std.experimental.xml. DMD fails with exit code 1.
Comment #1 by cauterite — 2016-08-23T20:11:01Z
(In reply to niklas.volcz from comment #0) > Created attachment 1611 [details] > code > > When compiling the attached program using DMD with the -w flag no error > message is printed, only one warning and one deprecation warning from the > std.experimental.xml. DMD fails with exit code 1. I think you misread the description: " -w warnings as errors (compilation will halt) -wi warnings as messages (compilation will continue) " The flag you want is -wi
Comment #2 by lodovico — 2016-08-23T20:15:50Z
[SEMI-OT] By the way, you shouldn't be using a RangeLexer when your input is a string. A SliceLexer will be much faster. If you don't want to choose manually, chooseLexer!myInputType will instantiate the best available lexer for your input type.
Comment #3 by niklas.volcz — 2016-08-23T20:35:55Z
(In reply to Cauterite from comment #1) > (In reply to niklas.volcz from comment #0) > > Created attachment 1611 [details] > > code > > > > When compiling the attached program using DMD with the -w flag no error > > message is printed, only one warning and one deprecation warning from the > > std.experimental.xml. DMD fails with exit code 1. > > I think you misread the description: > " > -w warnings as errors (compilation will halt) > -wi warnings as messages (compilation will continue) > " > > The flag you want is -wi DERP! I was reading the man page for the fedora package: " -w Enable warnings "
Comment #4 by niklas.volcz — 2016-08-24T20:00:19Z
Submitted PR for the man page error: https://github.com/dlang/dmd/pull/6079