Skip to content

C++: Add test showing that the IR translation for typeid is broken #20058

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

Merged
merged 1 commit into from
Jul 15, 2025

Conversation

jketema
Copy link
Contributor

@jketema jketema commented Jul 15, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings July 15, 2025 15:30
@jketema jketema requested a review from a team as a code owner July 15, 2025 15:30
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds a test case to demonstrate that the IR (Intermediate Representation) translation for C++ typeid expressions is broken. The test reveals issues in the code generation where typeid operations result in malformed IR instructions.

Key changes:

  • Adds a test file with typeid expressions to expose IR translation bugs
  • Creates a mock typeinfo header to support the test
  • Updates expected test outputs to reflect the newly discovered IR inconsistencies

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

File Description
type_info_test.cpp Test case with typeid expressions that expose IR translation issues
typeinfo Mock header file providing std::type_info class definition
*.expected Updated expected outputs showing IR consistency failures for typeid operations

@github-actions github-actions bot added the C++ label Jul 15, 2025
@MathiasVP MathiasVP merged commit 327c4b3 into github:main Jul 15, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants