Skip to content

Conversation

@elbeno
Copy link
Contributor

@elbeno elbeno commented Jul 14, 2025

Problem:

  • When CX_WRAP wraps expressions, it can cause a compiler error with is_type and type_of.

Solution:

  • Use __typeof__ to get around this.

Problem:
- When `CX_WRAP` wraps expressions, it can cause a compiler error with `is_type`
  and `type_of`.

Solution:
- Use `__typeof__` to get around this.

Note:
- The test passes GCC 12, 13 and trunk; however GCC 14 seems to have a regression.
Copy link
Contributor

@mjcaisse-intel mjcaisse-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dark magic C23 FTW!

@elbeno elbeno enabled auto-merge July 14, 2025 22:59
@elbeno elbeno merged commit 0b7d737 into intel:main Jul 14, 2025
82 of 84 checks passed
@elbeno elbeno deleted the fix-cx-wrap branch July 15, 2025 01:01
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