https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79445
Bug ID: 79445 Summary: Address clause on named number gives Assert_Failure in the compiler Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: georggcc at googlemail dot com Target Milestone: --- procedure Address_Clause_on_Named_Number is C : constant := 5 with Address => Anything; begin null; end ; $ gcc -c -gnatl -gnatwa -gnatd.n address_clause_on_named_number.adb /home/bauhaus/opt/gcc-7/lib/gcc/x86_64-pc-linux-gnu/7.0.0/adainclude/system.ads GNAT 7.0.0 20161104 (experimental) [trunk revision 241862] Copyright 1992-2016, Free Software Foundation, Inc. address_clause_on_named_number.adb +===========================GNAT BUG DETECTED==============================+ | 7.0.0 20161104 (experimental) [trunk revision 241862] (x86_64-pc-linux-gnu) | | Assert_Failure aspects.adb:647 | | Error detected at address_clause_on_named_number.adb:2:39 | | Please submit a bug report; see http://gcc.gnu.org/bugs.html. | | Use a subject line meaningful to you and us to track the bug. | | Include the entire contents of this bug box in the report. | | Include the exact command that you entered. | | Also include sources listed below. | +==========================================================================+ Please include these source files with error report Note that list may not be accurate in some cases, so please double check that the problem can still be reproduced with the set of files listed. Consider also -gnatd.n switch (see debug.adb). address_clause_on_named_number.adb raised SYSTEM.ASSERTIONS.ASSERT_FAILURE : namet.adb:146