aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorJavier Miranda <miranda@adacore.com>2023-05-03 17:30:51 +0000
committerMarc Poulhiès <poulhies@adacore.com>2023-06-20 09:30:48 +0200
commit862f84b4a36d6c569968d20949f54e2f427179c1 (patch)
tree09dbeb0000bfb10757fdb21bd540467efd97b722 /libcpp
parent869216ec14be5c2be3136de1128b7f1acac3d87e (diff)
downloadgcc-862f84b4a36d6c569968d20949f54e2f427179c1.zip
gcc-862f84b4a36d6c569968d20949f54e2f427179c1.tar.gz
gcc-862f84b4a36d6c569968d20949f54e2f427179c1.tar.bz2
ada: Spurious error on package instantiation
The compiler reports spurious errors processing the instantation of a generic package when the instantation is performed in the the body of a package that has a private type T, a dispatching primitive of T has the same name as a component of T, and an extension of T is used as the actual parameter for a formal derived type of T in the instantiation. gcc/ada/ * sem_ch4.adb (Try_Selected_Component_In_Instance): New subprogram; factorizes existing code. (Find_Component_In_Instance) Moved inside the new subprogram. (Analyze_Selected_Component): Invoke the new subprogram before trying the Object.Operation notation.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions