Files
bison/tests
Akim Demaille 8a910107b3 diagnostics: complain about undeclared string tokens
String literals, which allow for better error messages, are (too)
liberally accepted by Bison, which might result in silent errors.  For
instance

    %type <exVal> cond "condition"

does not define “condition” as a string alias to 'cond' (nonterminal
symbols do not have string aliases).  It is rather equivalent to

    %nterm <exVal> cond
    %token <exVal> "condition"

i.e., it gives the type 'exVal' to the "condition" token, which was
clearly not the intention.

Introduce -Wdangling-alias to catch this.

* src/complain.h, src/complain.c: Add support for -Wdangling-alias.
(argmatch_warning_args): Sort.
* src/symtab.c (symbol_check_defined): Complain about dangling
aliases.
* doc/bison.texi: Document it.
* tests/input.at (Dangling aliases): New test.
2019-11-17 18:27:42 +01:00
..
2019-02-21 06:46:07 +01:00
2019-11-02 16:40:50 +01:00
2019-10-10 17:53:48 +02:00
2019-11-01 12:04:13 +01:00
2019-10-13 09:22:05 +02:00
2019-10-13 09:22:05 +02:00
2019-08-09 06:40:38 -05:00
2019-11-02 16:40:50 +01:00
2019-04-24 13:21:24 +02:00
2019-11-02 16:40:50 +01:00
2019-11-02 16:40:50 +01:00
2019-06-19 19:15:31 +02:00
2019-09-14 10:09:08 +02:00
2019-10-17 11:51:20 -07:00
2019-10-13 09:22:05 +02:00
2019-02-21 17:46:11 +01:00
2019-04-23 18:29:10 +02:00
2019-02-09 08:23:50 +01:00
2019-10-17 11:51:20 -07:00
2019-09-14 09:55:17 +02:00
2019-11-03 10:32:22 +01:00
2019-11-02 16:40:50 +01:00
2019-11-02 16:40:50 +01:00