[cfe-dev] [CLang] Suggestion : reference to the standard on error

Dan Nelson dnelson at allantgroup.com
Thu Oct 20 14:10:18 PDT 2011

Klaim - Joël Lamotte wrote:
> Here is a suggestion that unfortunately I will not be able to try to 
> implement, but maybe someone around here would like to consider it. 
> It's not a critical nor really needed feature but I think it might be
> very interesting.
> The idea would be to add references to paragraphs of the language
> standard.

The TenDRA C compiler did this:

$ cat a.c
void f(int l)
    int a[l];
$ tcc -c a.c
"a.c", line 3: Error:
  [ISO C90 6.4]: Illegal integer constant expression.
  [ISO C90]: Array bound should be an integer constant expression.

	Dan Nelson
	dnelson at allantgroup.com

More information about the cfe-dev mailing list