diff options
| author | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-11-15 15:11:55 +1100 |
|---|---|---|
| committer | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-11-16 21:14:00 +1100 |
| commit | 4711901000ab141dbf3995ec4541f9d9a2351472 (patch) | |
| tree | a39fac4573903d76114e8f0b885f336c0e657f32 /libjava/classpath/gnu/java/beans/decoder/ArrayHandler.java | |
| parent | 3d11d69600b7c3ebf0cf8eacc6a4bc8d994710e9 (diff) | |
c++/modules: Keep tracking instantiations of static class variable templates [PR122625]
r16-4930-gfd5c057c2d01 ensured that we noted all class-scope variables.
But I also added a clause to 'read_var_def' to skip all class-scope
instantiations, under the mistaken belief that this would be handled in
read_class_def.
But as the testcase shows, read_class_def cannot (and should not)
register instantiations of member variable templates, as when reading
the class it just sees the template declaration. So this patch
re-enables tracking instantiations of class-scope variable templates.
PR c++/122625
gcc/cp/ChangeLog:
* module.cc (trees_in::read_var_def): Also track class-scope
primary template specialisations.
gcc/testsuite/ChangeLog:
* g++.dg/modules/inst-7_a.C: New test.
* g++.dg/modules/inst-7_b.C: New test.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'libjava/classpath/gnu/java/beans/decoder/ArrayHandler.java')
0 files changed, 0 insertions, 0 deletions
