Did you try with optimisations enabled? Here is a (trivial) program comparing gcc output between -std=c++14 and -std=c++17: https://godbolt.org/g/VLDhYf.
Note that the output code size with -std=c++17 is significantly larger without optimisations (default), but it is identical with optimisations turned on!