Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve one problem that bad_array_new_length is not thrown for certain… #61

Closed
wants to merge 3 commits into from

Conversation

chumarshal1
Copy link

Solve one problem that bad_array_new_length is not thrown for certain scenarios "int n=-1; new char[n];".

Becase the scenarios "int n=-1; new char[n];" does not follow C++ spec: "std::bad_array_new_length is the type of the object thrown as exceptions by the new-expressions to report invalid array lengths if array length is negative."

@chumarshal1
Copy link
Author

@jason Merrill help review

@chumarshal1 chumarshal1 closed this Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant