Opened 6 years ago

Last modified 6 years ago

#6759 new Bugs

boost::wave::support_option_option_new_line didn't work as expected.

Reported by: wuye9036@… Owned by: Hartmut Kaiser
Milestone: To Be Determined Component: wave
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc:

Description

I think following code is error:

if ((!seen_newline
act_pos.get_column() > 1) &&

!need_single_line(ctx.get_language()))

{ warn, if this file does not end with a newline

BOOST_WAVE_THROW_CTX(ctx, preprocess_exception,

last_line_not_terminated, "", act_pos);

}

I think we hope that error reported if "newline not found" while "need single line"

Change History (2)

comment:1 Changed 6 years ago by wuye9036@…

Positon is cpp_iterator.hpp, line 655

comment:2 Changed 6 years ago by Hartmut Kaiser

Please elaborate what is wrong in your oppinion. Please give an example input for which Wave produces unexpected output and suggest what should be different.

Note: See TracTickets for help on using tickets.