Akim Demaille
461f1516f8
diagnostics: fix the order of multiple declarations reports
On
%token FOO "foo"
%printer {} "foo"
%printer {} FOO
we report
/tmp/foo.yy:2.10-11: error: %printer redeclaration for FOO
%printer {} "foo"
^^
/tmp/foo.yy:3.10-11: previous declaration
%printer {} FOO
^^
* src/symtab.c (locations_sort): New.
Use it.
* tests/input.at (Invalid Aliases): Stress the order of diagnostics.
2013-12-09 16:53:03 +01:00
..
2008-11-16 19:46:16 +01:00
2013-11-08 10:52:15 +01:00
2013-09-19 15:57:59 +02:00
2013-04-08 13:44:57 +02:00
2013-11-15 10:14:05 +01:00
2013-04-18 17:19:30 +02:00
2013-11-26 15:31:52 +01:00
2013-11-08 10:52:15 +01:00
2013-04-22 11:36:22 +02:00
2013-11-08 10:52:15 +01:00
2013-11-08 10:52:15 +01:00
2013-12-09 16:53:03 +01:00
2013-09-04 17:26:17 +02:00
2013-06-24 09:37:18 +02:00
2013-10-24 17:22:21 +02:00
2013-11-05 14:32:20 +01:00
2013-04-08 13:44:57 +02:00
2013-12-04 15:53:01 +01:00
2013-11-08 10:52:15 +01:00
2013-11-26 15:31:52 +01:00
2013-11-08 10:52:15 +01:00
2013-04-08 13:44:57 +02:00
2013-04-08 13:44:57 +02:00
2013-04-08 13:44:57 +02:00
2013-06-13 10:38:14 +02:00
2013-04-08 13:44:57 +02:00
2013-04-09 16:59:06 +02:00