petdance/scratch — Issue #796: pmc2c silently ignores bad code
Author: petdance
Created: 2011-11-01 05:36:55+00:00
State: open
Labels: build, Pri-normal, Sev-medium, todo

Originally reported in [http://rt.perl.org/rt3/Ticket/Display.html?id=39313 RT]

Summary of that ticket (quoting allison)

{{{
Pmc2c is just a series of regular expressions. It looks for specific
patterns, and if it finds them, builds relevant C code out of them.

It has no ability to check for arbitrary syntax that *doesn't* match a
pattern. It's a preprocessor (macro substitution), not a language parser.

What could be done is have it dump anything leftover after the
extraction into the resulting C file. Then you'd get a C error on
compilation.
}}}

Trac ID #1041