boostorg / spirit

Boost.org spirit module
http://boost.org/libs/spirit
393 stars 161 forks source link

Regression since BOOST 1_70 #548

Closed artemp closed 5 years ago

artemp commented 5 years ago

Minimal use-case : https://github.com/artemp/spirit-x3-test ( somewhat related to #511) This code compiles, links and runs as expected with BOOST <= 1.69 (both GCC and clang) but results in linker error with BOOST >=1.70. Key features are separate TUs for grammar instantiations and use of semantic actions in aggregate grammar.

/cc @djowel @Kojoley

Kojoley commented 5 years ago

I can confirm the bug, regressed with #457, should be fixed with #549.

You can avoid the bug by defining rules with force_attribute = true though.

artemp commented 5 years ago

@Kojoley - thanks for the quick fix!