Thanks to Rimvydas Jasinskas, GCC 8.0 has been imported into DragonFly. It’s not built by default, so you’ll need to set WORLD_ALTCOMPILER to get it. Rimvydas mentions this is part of a 3-year upgrade cycle.
Note that he went the extra mile and made sure dports could handle it too.
What’s the default compiler?
GCC 5.0?
https://www.dragonflydigest.com/2015/04/15/15958.html
The current default compiler for DFly is GCC 5.4, and the alternative is GCC 4.7