This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH for over-aggressive handling of unnamed structs


> Here, `S' does not have `that class type'; it has a cv-qualified
> version of that class type.  You're proposing that `S' be the name of
> the unqualified struct, but `const S' and `S' be alternative names for
> the const-qualified version.  (Yes, I know one name is for linkage
> purposes only.)
> 
> I confirmed my interpretation with several members of the committee
> yesterday, FWIW.

So it is the interpretation that S does not have linkage?
Therefore, declaring

typedef const struct { } S;
void f(S);

would be ill-formed (as it declares a function with external linkage)?

Confused,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]