FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Bugfix: Update for regex 20 lookbehind test. by MaxSagebaum · Pull Request #1407 · hsutter/cppfront · GitHub

Bugfix: Update for regex 20 lookbehind test. - #1407

Open
MaxSagebaum wants to merge 4 commits into
hsutter:mainfrom
MaxSagebaum:bugfix/regex_file
Open

MaxSagebaum wants to merge 4 commits into
hsutter:mainfrom
MaxSagebaum:bugfix/regex_file

Conversation

Copy link
Copy Markdown
Contributor

Removed cpp file and added cpp2 file.

hsutter commented Jul 27, 2025

Copy link
Copy Markdown
Owner

Thanks! I pushed a commit that re-runs the regression tests to keep everything in sync.

While doing that, I noticed there seems to be a problem for MSVC here with cpp2regex.h2(591): error C2668: 'std::make_reverse_iterator': ambiguous call to overloaded function. Here's 591:

r := func(make_reverse_iterator(cur), make_reverse_match_context(ctx), true_end_func());

It seems the similar line 577 should also get this error, but doesn't because maybe that one is never invoked?

Conjecture: Maybe

  • lines 577 and 591 make*iterator calls should be std:: qualified, and

  • the make*iterator helpers on lines 184-189 should just be removed as they don't seem to be used?

But I'm not sure so I just pushed the update to regression tests in without any code changes.

Copy link
Copy Markdown
Contributor Author

I will have a look during the week.

Copy link
Copy Markdown
Contributor Author

Took a little longer until I had time.

MSVC seems to be confused by the argument dependent lookup. I implemented the make_reverse_iterator and make_forward_iterator functions as overloads in a different namespace. What I required was that a reverse iterator stays a reverse iterator and a forward iterator stays a forward iterator. I renamed the functions, this should remove the MSVC issue.

I will update the tests with the results from the ci so that it should be clean.

Copy link
Copy Markdown
Contributor Author

Seems to be clean from a regex point of view. There are still some errors from MSVC at other places.

This branch has not been deployed

No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL