[Ada] Wrong column in sloc of "expect name" error for loop variant
authorJustin Squirek <squirek@adacore.com>
Thu, 11 Jan 2018 08:50:25 +0000 (08:50 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 11 Jan 2018 08:50:25 +0000 (08:50 +0000)
commitc8f258171c90b52a45c6884138df740b2ef88c27
tree358954e17f67faffe4c42d7d1d30c26fa54bb4df
parent51f3e4e157dae1cded8f340f12859b237151fe74
[Ada] Wrong column in sloc of "expect name" error for loop variant

This patch corrects error messages printed when using the pragma Loop_Variant
without a named argument from having an incorrect column number in some cases.

2018-01-11  Justin Squirek  <squirek@adacore.com>

gcc/ada/

* sem_prag.adb (Analyze_Pragma:Pragma_Loop_Variant): Modify error
message to be printed on the pragma argument identifier.

gcc/testsuite/

* gnat.dg/loopvar.adb: New testcase.

From-SVN: r256484
gcc/ada/ChangeLog
gcc/ada/sem_prag.adb
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/loopvar.adb [new file with mode: 0644]