Skip to content

scan-build (checker-0.147) fails on locally declared labels #3830

@llvmbot

Description

@llvmbot
Bugzilla Link 3458
Resolution DUPLICATE
Resolved on Feb 17, 2011 22:06
Version unspecified
OS MacOS X
Attachments zip of crashes directory
Reporter LLVM Bugzilla Contributor
CC @nunoplopes

Extended Description

scan-build fails on locally declared labels:

void test(void)
{
label out;
out: return;
}

/usr/local/checker-0.147/scan-build -v gcc -c clang3.c

scan-build: Emitting reports for this run to '/var/folders/+T/+TiBcl+bE-44SggZya2FFk+++TI/-Tmp-//scan-build-2009-02-02-13'.
clang3.c:3:3: error: expected expression
label out;
^
1 diagnostic generated.
scan-build: 0 bugs found.
scan-build: The analyzer crashed on some source files.

I have a large source tree depending heavily on macros using those labels,
thats why I qualified it as "blocker".

Kind regards, Bjoern

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions