boostorg / wave

Boost.org wave module
http://boost.org/libs/wave
21 stars 49 forks source link

Invalid #pragma parsing #206

Closed AlexBAV closed 8 months ago

AlexBAV commented 8 months ago

After #188 the following source code is parsed incorrectly by Boost.Wave:

#pragma some(some)
#include "path"

The line end at the end of pragma line is "eaten" and next token after right paren returned is literally #include "path". Adding another newline after the #pragma line fixes this.

This started in boost 1.84.0, apparently after #188.

AlexBAV commented 8 months ago

Sorry for reporting, duplicate of #200.

jefftrull commented 8 months ago

Sorry about the problem, hope you are able to use our develop branch until 1.85 is released.