-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[JIT] Fix aten::format regex for clang8 #28916
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
Conversation
[ghstack-poisoned]
soumith
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc: @ggoossen it reverts your change because of Clang8 issue
|
@soumith not really a revert but just an alternate implementation to fix the same issue, notice the new |
|
@jamesr66a merged this pull request in 15deee2. |
|
ah okay, didn't notice |
|
@jamesr66a Adding the |
|
@ggoossen in that case the inner atom should have |
…attempt Previous attempt in #28616 didn't work in clang8 and got reverted in #28916 This one escapes the } inside the brackets, maybe that works Differential Revision: [D18324286](https://our.internmc.facebook.com/intern/diff/D18324286/) [ghstack-poisoned]
…attempt Previous attempt in #28616 didn't work in clang8 and got reverted in #28916 This one escapes the } inside the brackets, maybe that works Differential Revision: [D18324286](https://our.internmc.facebook.com/intern/diff/D18324286/) ghstack-source-id: 93270628 Pull Request resolved: #29193
…ns, second attempt" Previous attempt in #28616 didn't work in clang8 and got reverted in #28916 This one escapes the } inside the brackets, maybe that works Differential Revision: [D18324286](https://our.internmc.facebook.com/intern/diff/D18324286/) [ghstack-poisoned]
…attempt Pull Request resolved: #29193 Previous attempt in #28616 didn't work in clang8 and got reverted in #28916 This one escapes the } inside the brackets, maybe that works ghstack-source-id: 93283014 Differential Revision: [D18324286](https://our.internmc.facebook.com/intern/diff/D18324286/)
Stack from ghstack:
The previous regex caused a
std::regex_errorunder clang8 complaining abouterror_brack, which is strange because the square brackets are balanced. Seems like a stdlib bug to me. So to workaround this, I've switched to the older regex with a non-greedy match in the inner atomDifferential Revision: D18232654