[Issue 23693] compilable/testcstuff3.i:7:1: error: stray '#' in program

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 20 06:53:08 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23693

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
linemarkers are a gcc extension, not a standard:

https://gcc.gnu.org/onlinedocs/gcc-11.1.0/cpp/Preprocessor-Output.html

Microsoft's preprocessor generates #line linemarkers, too.

ImportC has to work with the output of C preprocessors other than gcc's.
There's not much I can do about that. I recommend gcc simply not run those
tests.

--


More information about the Digitalmars-d-bugs mailing list