bug-standards
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error messages with ranges


From: Richard Stallman
Subject: Re: error messages with ranges
Date: Sat, 17 Oct 2009 23:10:20 -0400

    FWIW, clang uses ranges for a lot of things other than arguments.

We already support ranges in error messages.  The issue here is to
include more than one range.  These two examples need only one:

    $ clang -fsyntax-only t.c
       t.c:12:8: error: called object type 'int' is not a function or function 
pointer
       (P-Q)();
       ~~~~~^
    $ clang t.c
    t.c:5:28: warning: use of GNU old-style field designator extension
    struct point origin = { x: 0.0, y: 0.0 };
                             ~~ ^
                             .x =

However, my proposal is not limited to indicating the arguments.
It could be used to convey multiple ranges for any purpose.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]