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

[V506-037] Unexpected error when using Inline_Always, -gnata and -gnateV #49

Open
treiher opened this issue May 6, 2022 · 0 comments
Open

Comments

@treiher
Copy link
Member

treiher commented May 6, 2022

Issue

Under certain conditions the use Inline_Always, -gnata and -gnateV leads to an unexpected error:

$ gprbuild -gnateV -gnata
using project file /opt/GNAT/2021/share/gpr/_default.gpr
Compile
   [Ada]          main.adb
test.adb: In function 'Test.P':
test.adb:4:4: error: subprogram 'Test.P' not marked 'Inline_Always'
test.adb:4:4: error: parent subprogram cannot be inlined
gprbuild: *** compilation phase failed

Workaround

Do not use Inline_Always, -gnata (and -gnateV) together. (Only in some cases, removing -gnateV is sufficient.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment