Skip to content

[bug] [clang] the position of main function influence the result #60618

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

Closed
Lloyd-Pottiger opened this issue Feb 9, 2023 · 1 comment
Closed
Labels
duplicate Resolved as duplicate llvm:optimizations question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

Comments

@Lloyd-Pottiger
Copy link

gcc:

image

clang:

image

@tbaederr
Copy link
Contributor

tbaederr commented Feb 9, 2023

This is a duplicate of #60588 IMO - the loop is UB.

@tbaederr tbaederr closed this as completed Feb 9, 2023
@EugeneZelenko EugeneZelenko closed this as not planned Won't fix, can't repro, duplicate, stale Feb 9, 2023
@EugeneZelenko EugeneZelenko added duplicate Resolved as duplicate question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead! llvm:optimizations and removed new issue labels Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Resolved as duplicate llvm:optimizations question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Projects
None yet
Development

No branches or pull requests

3 participants