aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc-changelog/git_commit.py
diff options
context:
space:
mode:
authorNathaniel Shead <nathanieloshead@gmail.com>2025-10-26 22:27:33 +1100
committerNathaniel Shead <nathanieloshead@gmail.com>2025-11-03 00:45:19 +1100
commitfd5c057c2d01346d69119f88ca94debf27842e4e (patch)
tree1ed7192e2e6354446fe2f232ef0bf65683bdaf24 /contrib/gcc-changelog/git_commit.py
parentad8de026441c3e57c4761b1c595ace92ed21c254 (diff)
downloadgcc-fd5c057c2d01346d69119f88ca94debf27842e4e.zip
gcc-fd5c057c2d01346d69119f88ca94debf27842e4e.tar.gz
gcc-fd5c057c2d01346d69119f88ca94debf27842e4e.tar.bz2
c++/modules: Track all static class variables [PR122421]
The linker error in the PR is caused because when a static is defined out of the class body, it doesn't yet have a definition and so read_var_def (which would otherwise have noted it) never gets called. This instead moves the responsibility for noting class-scope variables to read_class_def. PR c++/122421 gcc/cp/ChangeLog: * module.cc (trees_in::read_var_def): Don't handle class-scope variables anymore. (trees_in::read_class_def): Handle them here instead. gcc/testsuite/ChangeLog: * g++.dg/modules/inst-6_a.C: New test. * g++.dg/modules/inst-6_b.C: New test. Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com> Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
0 files changed, 0 insertions, 0 deletions