diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-07-29 21:46:59 +1000 |
---|---|---|
committer | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-08-01 10:35:16 +1000 |
commit | 643c5b42e21dbc02e9bde01865c880b26aa5f938 (patch) | |
tree | 16f8e5f0732887f836ac299056e2c62eacfd3a9f /gcc/testsuite/ada/acats-4/tests/a/a38106d.ada | |
parent | 70136bdc76ae1774162ccbeeedd33aa531950e68 (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
This PR is the most frequently reported modules bug for 15, as the ICE
message does not indicate the issue at all and reducing to find the
underlying cause can be tricky.
I have a WIP patch to fix this issue by just reconstructing these nodes
on stream-in from any attributes applied to the functions, but since at
this stage it may still take a while to be ready, it seems useful to me
to at least make the error here more friendly and guide users to what
they could do to work around this issue.
In fact, as noted on the PR, a lot of the time it should be harmless to
just ignore the optimize etc. attribute and continue translation, at the
user's own risk; this patch as such turns the ICE into a warning with no
option to silence.
PR c++/108080
gcc/cp/ChangeLog:
* module.cc (trees_out::core_vals): Warn when streaming
target/optimize node; adjust comments.
(trees_in::core_vals): Don't stream a target/optimize node.
gcc/testsuite/ChangeLog:
* g++.dg/modules/pr108080.H: New test.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Reviewed-by: Jason Merrill <jason@redhat.com>
Reviewed-by: Patrick Palka <ppalka@redhat.com>
Diffstat (limited to 'gcc/testsuite/ada/acats-4/tests/a/a38106d.ada')
0 files changed, 0 insertions, 0 deletions