From: Akim Demaille Date: Mon, 9 Dec 2013 14:26:52 +0000 (+0100) Subject: diagnostics: fix the order of multiple declarations reports X-Git-Tag: v3.0.3~30 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/461f1516f8d301f5be532e496f6def0d15e502ed?hp=461f1516f8d301f5be532e496f6def0d15e502ed 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. ---