Skip to content

GCC/EDG Extension: Comparison of void** and void const** rejected. #6718

@llvmbot

Description

@llvmbot
Bugzilla Link 6346
Resolution FIXED
Resolved on Feb 25, 2010 16:30
Version trunk
OS All
Reporter LLVM Bugzilla Contributor
CC @DougGregor

Extended Description

g++ accepts the code fragment: int main(void) { void** i; void const** j; i == j; }

clang++ rejects this, with the error:

t.cc:1:46: error: comparison of distinct pointer types ('void ' and
'void const ')
int main(void) { void i; void const
j; i == j; }
~ ^ ~

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions