aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/resource/java
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2026-02-04 11:31:02 -0500
committerMarek Polacek <polacek@redhat.com>2026-02-05 09:16:57 -0500
commit507ea25cf2e18bba38e28ab7b57cc725895cb067 (patch)
tree7ee05301d2feff87e44eca909b1106cdc3d22767 /libjava/classpath/resource/java
parent6385a3582c0b6b30479bc68f7d2b74e327ec44d7 (diff)
downloadgcc-507ea25cf2e18bba38e28ab7b57cc725895cb067.zip
gcc-507ea25cf2e18bba38e28ab7b57cc725895cb067.tar.gz
gcc-507ea25cf2e18bba38e28ab7b57cc725895cb067.tar.bz2
c++/reflection: fix type_of for member fns [PR123934]
Here the assert was wrongly failing with 'void (struct F::)(int)' is not the same as 'void(int)' but as per [dcl.fct]/1 the type of fType should not include the class F. PR c++/123934 gcc/cp/ChangeLog: * reflect.cc (type_of): For FUNCTION_DECLs, use static_fn_type. gcc/testsuite/ChangeLog: * g++.dg/reflect/type_of2.C: Uncomment an assert. Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'libjava/classpath/resource/java')
0 files changed, 0 insertions, 0 deletions