-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[clang] clang-18: fatal error: error in backend: Invalid size request on a scalable vector #73458
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
Comments
Do you have backtrace available? There is a bug report with a similar error diagnostic here: #54423 |
Sure, the reproducer still works as of
|
I compiled Clang at the specified commit, and was able to reproduce. typedef struct irq_data {
struct irq_domain *domain;
};
struct irq_domain {
const char name;
unsigned int revmap_size;
struct irq_data *revmap[]
__attribute__((__counted_by__(revmap_size)));
};
struct irq_data irq_domain_fix_revmap_d;
unsigned long irq_domain_fix_revmap_d_0;
static void irq_domain_fix_revmap() {
*&irq_domain_fix_revmap_d.domain->revmap[irq_domain_fix_revmap_d_0] = 0;
}
void irq_domain_push_irq() { irq_domain_fix_revmap; } Post-17 trunk crash:
|
@llvm/issue-subscribers-clang-codegen Author: Dmitry Antipov (dmantipov)
[irqdomain-5bc199-script.txt](https://github.com/llvm/llvm-project/files/13468003/irqdomain-5bc199-script.txt)
[irqdomain-5bc199-source.txt](https://github.com/llvm/llvm-project/files/13468004/irqdomain-5bc199-source.txt)
Auto-generated reproducer attached. Rename |
@llvm/issue-subscribers-c Author: Dmitry Antipov (dmantipov)
[irqdomain-5bc199-script.txt](https://github.com/llvm/llvm-project/files/13468003/irqdomain-5bc199-script.txt)
[irqdomain-5bc199-source.txt](https://github.com/llvm/llvm-project/files/13468004/irqdomain-5bc199-source.txt)
Auto-generated reproducer attached. Rename |
irqdomain-5bc199-script.txt
irqdomain-5bc199-source.txt
Auto-generated reproducer attached. Rename
irqdomain-5bc199-script.txt
toirqdomain-5bc199.sh
andirqdomain-5bc199-source.txt
toirqdomain-5bc199.c
, respectively.The text was updated successfully, but these errors were encountered: