Skip to content

Problem handling C++ preprocessor markup #46

Description

@EnderHubris
#include ARB_VALUE

int main() {
    int a = 0;
    std::cout << a << std::endl;
    return 0;
}

With this snippet of C++ the preprocessor macro including ARB_VALUE when passed causes an assertion throw.

src/policy_classes/DeltaElement.tcc:171: type& srcDispatch::DeltaElement<type>::GetOriginal() [with type = std::__cxx11::basic_string<char>]: Assertion `HasOriginal()' failed.

The srcML that it reads looks like this:

<cpp:include>#<cpp:directive>include</cpp:directive> ARB_VALUE</cpp:include>

I believe there is an error where because ARB_VALUE is hanging, this is event causing errors to occur.

Real-World Example Line.28

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions