Skip to content

Assertion hit in clang::QualType::getCommonPtr() #3754

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
daurnimator opened this issue Nov 24, 2019 · 1 comment
Closed

Assertion hit in clang::QualType::getCommonPtr() #3754

daurnimator opened this issue Nov 24, 2019 · 1 comment
Labels
bug Observed behavior contradicts documented or intended behavior translate-c C to Zig source translation feature (@cImport)
Milestone

Comments

@daurnimator
Copy link
Contributor

When passed to zig translate-c, the following C snippet (from /lib/modules/5.3.11-arch1-1/build/arch/x86/include/asm/apic.h) hits an assertion

extern enum apic_intr_mode_id apic_intr_mode;
enum apic_intr_mode_id {
	APIC_PIC,
};
zig: /usr/include/clang/AST/Type.h:659: const clang::ExtQualsTypeCommonBase* clang::QualType::getCommonPtr() const: Assertion `!isNull() && "Cannot retrieve a NULL type pointer"' failed.
@daurnimator daurnimator added bug Observed behavior contradicts documented or intended behavior translate-c C to Zig source translation feature (@cImport) labels Nov 24, 2019
@andrewrk andrewrk added this to the 0.6.0 milestone Nov 25, 2019
@daurnimator
Copy link
Contributor Author

That fixed it for self-hosted translate-c, but this issue still exists until #3973 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior translate-c C to Zig source translation feature (@cImport)
Projects
Archived in project
Development

No branches or pull requests

2 participants