Navigation Menu

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

Incorrect code for VLA pointers #8939

Closed
llvmbot opened this issue Nov 8, 2010 · 1 comment
Closed

Incorrect code for VLA pointers #8939

llvmbot opened this issue Nov 8, 2010 · 1 comment
Labels
bugzilla Issues migrated from bugzilla clang Clang issues not falling into any other category

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Nov 8, 2010

Bugzilla Link 8567
Resolution FIXED
Resolved on Nov 08, 2010 19:32
Version trunk
OS Linux
Attachments Test case
Reporter LLVM Bugzilla Contributor
CC @akyrtzi

Extended Description

Problem is for pointer of form

double (*p)[n][5];

where n is a runtime parameter. Test case attached.

$ gcc -Wall -std=c99 vla-bug.c && ./a.out
test_static: size 15 diff 15
test_var: size 15 diff 15
$ clang -Wall -std=c99 vla-bug.c && ./a.out
test_static: size 15 diff 15
test_var: size 15 diff 75

@akyrtzi
Copy link
Contributor

akyrtzi commented Nov 9, 2010

Fixed at r118468.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang Clang issues not falling into any other category
Projects
None yet
Development

No branches or pull requests

2 participants