This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | IDE highlights 'typename mpl::eval_if_c' line as wrong | ||
---|---|---|---|
Product: | cnd | Reporter: | soldatov <soldatov> |
Component: | Editor | Assignee: | issues@cnd <issues> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
soldatov
2008-06-26 12:05:55 UTC
The cause of this issue is "template_argument" rule in our grammar. It allows only "shift_expression" as argument, not a more general "assignment_expression". But expression "alignment_ == std::size_t(-1)" can't be matched by "shift_expression", and the parser fails. There is a simple workaround. If you want to pass complex expression as template argument, enclose it in parentheses. The following declaration is accepted by our parser: typename mpl::eval_if_c< (alignment_ == std::size_t(-1)) , mpl::identity<detail::max_align> >::type align_; *** This issue has been marked as a duplicate of 138216 *** |