GCC: exchange declarations to avoid ICE in flat_tree
Following code in flat_tree.h triggers an ICE in GCC 9 and onwards: container_type body_; NO_UNIQUE_ADDRESS key_compare comp_; testcase.ii:58:77: internal compiler error: in output_constructor_regular_field, at varasm.c:5249 58 | void Get() { static auto kSchemas = MakeFixedFlatMap<int, int>({{"", ""}}); } Swapping the declaration does not change behavior, but it doesn't trigger the ICE anymore. Bug: 1156268 Change-Id: I865812bf24daf14bf53473726c40b4566e002cde Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2574860 Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org> Reviewed-by:Jan Wilken Dörrie <jdoerrie@chromium.org> Cr-Commit-Position: refs/heads/master@{#835285}
Showing
Please register or sign in to comment