Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gnatpp: Constraint error when excludes file contains more lines than input files #8

Open
LordAro opened this issue Aug 16, 2019 · 1 comment

Comments

@LordAro
Copy link

LordAro commented Aug 16, 2019

With test_excludes.txt as

afile.adb
bfile.adb

gnatpp --ignore=test_excludes.txt foobar.adb results in:

Unhandled Exception raised
raised CONSTRAINT_ERROR : utils-drivers.adb:120 range check failed
[/home/cpigott/dev/libadalang-tools/bin/gnatpp]
Utils.Drivers.Driver.Process_Files at utils-drivers.adb:120
Utils.Drivers.Driver at utils-drivers.adb:220
Pp.Main at pp-main.adb:20
Main at b__pp-main.adb:1706
[/lib/x86_64-linux-gnu/libc.so.6]
0x7f12a01b7b95
[/home/cpigott/dev/libadalang-tools/bin/gnatpp]
0x407d78 _start at ???
0xfffffffffffffffe

I also managed to trigger the debug assert on line 124, but I can't find a minimal reproducer for that at the moment

@andrewathalye
Copy link

This is still reproducible under the same conditions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants