Skip to content

[SUGGESTION] UFCS error message could be less misleading #439

Closed
@realgdman

Description

@realgdman
main: () = {
	vi: std::vector<int> = ();
	vi.push_back("oops");
}

Gives cpp1 diagnostic

error: use of undeclared identifier 'push_back'
CPP2_UFCS(push_back, std::move(vi), "oops");
vector.cpp2:6:2: note: in instantiation of function template specialization 'main()::(anonymous class)::operator()<std::vector, const char (&)[5]>' requested here
CPP2_UFCS(push_back, std::move(vi), "oops");

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions