[cfe-dev] bug with USRs and fixed-length arrays?

Dmitri Gribenko gribozavr at gmail.com
Fri Nov 2 11:00:18 PDT 2012

On Fri, Nov 2, 2012 at 7:55 PM, Iestyn Bleasdale-Shepherd
<iestyn at valvesoftware.com> wrote:
> Hi,
> The strings returned by clang_getCursorUSR represent fixed-length arrays as
> pointers, so the USRs for "void Func( char[16] )" and "void "Func( char[32]
> )" are identical and thus ambiguous.

Hi Iestyn,

These two decls are just redeclarations of one function -- see C11

A declaration of a parameter as ‘‘array of type’’ shall be adjusted to
‘‘qualified pointer to type’’ [...]

So in my opinion there is no reason for them to have different USRs.


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

More information about the cfe-dev mailing list