Skip to content

[^] should be valid #341

@Alcaro

Description

@Alcaro
#include <ctre.hpp>

bool test(const char * str)
{
    return ctre::match<"[^]">(str);
}

Expected: Should match exactly 1 byte that is not a member of the empty set, aka check if the string's length is 1.

Actual: 965 lines of compiler output, ending with invalid use of incomplete type 'struct ctre::problem_at_position<2>'.

https://godbolt.org/z/cvPfsaqcM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions