Skip to content

OCC fails to reconcile pointer-to-array with pointer-to-pointer #1155

@bradking

Description

@bradking

Given this source:

>type example.cxx
void foo(int**) {}
void bar(int a[]) { foo(&a); }

OrangeC 7.10.59 fails to compile it:

>occ -c example.cxx
occ (OrangeC) Version 7.10.59
...
Error(232)    example.cxx(2):  Could not find a match for 'foo(int[0])'
1 Errors

OrangeC 7.0.7 worked:

>occ -c example.cxx
occ (OrangeC) Version 7.0.7
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions