On Apr 9, 2013, at 18:04 , Michael Ilseman <[email protected]> wrote:
> // Line markers are digit strings interpreted as decimal numbers, this is
> // 10, not 8.
> #line 010 // expected-warning {{#line directive interprets number as
> decimal, not octal}}
> +# 010 // expected-warning {{GNU line marker directive interprets number
> as decimal, not octal}}
> extern int array[__LINE__ == 10 ? 1:-1];
Oops, and of course now I see the issue—the following line with __LINE__ is a
poor man's static_assert, checking that the line marker actually did its job.
Can you put that in for both kinds of directive?
Jordan
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits