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

[SR-13828] [C, C++] Import redefined macros. #56226

Closed
zoecarver opened this issue Nov 5, 2020 · 3 comments
Closed

[SR-13828] [C, C++] Import redefined macros. #56226

zoecarver opened this issue Nov 5, 2020 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. c++ interop Feature: Interoperability with C++ compiler The Swift compiler in itself

Comments

@zoecarver
Copy link
Collaborator

Previous ID SR-13828
Radar None
Original Reporter @zoecarver
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CxxInterop
Assignee None
Priority Medium

md5: 919c9a5b52ecdb54bc414e68e2876cda

Issue Description:

Currently when trying to import a macro that has been "redefined" the compiler runs into an infinite loop. We should be able to import "redefined" macros properly, though.

Here's an example:

#define FOO 0 
#define TMP_FOO FOO 
#undef FOO 
#define FOO TMP_FOO
@zoecarver
Copy link
Collaborator Author

Resolved by #​34587.

@zoecarver
Copy link
Collaborator Author

@swift-ci create

1 similar comment
@zoecarver
Copy link
Collaborator Author

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@zoecarver zoecarver added c++ interop Feature: Interoperability with C++ and removed CxxInterop labels Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. c++ interop Feature: Interoperability with C++ compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

1 participant