https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121623
--- Comment #20 from Frank Scheiner <frank.scheiner at web dot de> --- (In reply to Sam James from comment #19) > Try building it with the same version. You may also need an explicit -std=... Thanks a lot, that did it, in the end I used 15.2.0 and the minimum standard to complete successfully was `-std=c++17`: ``` root@esprimo-e420:/usr/src# ia64-t2-linux-gnu-g++ -std=c++17 -fpermissive -nostdinc++ -fno-PIE -c -DUSE_LIBUNWIND_EXCEPTIONS -g -O2 -fchecking=1 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -fno-PIE -o trans-mem.ii.o -MT -MMD -MP -MF trans-mem.ii.o trans-mem.ii ../../gcc/trans-mem.cc: In function 'bool is_tm_pure(const_tree)': ../../gcc/trans-mem.cc:210:7: warning: this statement may fall through [-Wimplicit-fallthrough=] ../../gcc/trans-mem.cc:214:5: note: here ../../gcc/trans-mem.cc: In function 'tree_node* get_attrs_for(const_tree)': ../../gcc/trans-mem.cc:176:7: warning: this statement may fall through [-Wimplicit-fallthrough=] ../../gcc/trans-mem.cc:180:5: note: here ../../gcc/trans-mem.cc:182:7: warning: this statement may fall through [-Wimplicit-fallthrough=] ../../gcc/trans-mem.cc:186:5: note: here ../../gcc/trans-mem.cc: In function 'bool requires_barrier(basic_block, tree, gimple*)': ../../gcc/trans-mem.cc:1544:8: warning: this statement may fall through [-Wimplicit-fallthrough=] ../../gcc/trans-mem.cc:1547:5: note: here root@esprimo-e420:/usr/src# echo $? 0 root@esprimo-e420:/usr/src# ia64-t2-linux-gnu-g++ --version ia64-t2-linux-gnu-g++ (T2 SDE) 15.2.0 [...] ```
