Skip to content

Invalid "goto into protected scope" error #10509

@llvmbot

Description

@llvmbot
Bugzilla Link 10137
Resolution INVALID
Resolved on Jun 15, 2011 10:02
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor
CC @DougGregor,@efriedma-quic,@ehsan,@tkremenek

Extended Description

A small variation from the test is bug 10034 still fails:

void puts(const char*);

struct Y {};
struct X : Y {};

void exx(X) {}

int main(int argc, char **argv)
{
if (argc > 3)
goto end;

X x;
exx(x);

end:

for (int i = 0; i < argc; ++i)
{
puts(argv[i]);
}

return 0;
}

Are we OK with extending clang to accept it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++invalidResolved as invalid, i.e. not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions