Skip to content

vargs macro dererencing a incomplete structure #11708

@llvmbot

Description

@llvmbot
Bugzilla Link 11336
Resolution WORKSFORME
Resolved on Nov 08, 2011 16:44
Version trunk
OS All
Reporter LLVM Bugzilla Contributor
CC @efriedma-quic

Extended Description

The 'online-demo' compiler crash with this code:

#include <stdarg.h>

struct S;
void deref_incomplete(int a, ...)
{
va_list ap;
int i;

va_start(ap, a);
va_arg(ap, struct S);
va_end(ap);
}

clang: error: unable to execute command: Segmentation fault

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"worksformeResolved as "works for me"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions