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]
Other format: [Raw text]

Re: Is this a bug or I misunderstand?


maggie_shh wrote:-

> What I mean is that maybe we should not permit func-decl in function-scope
> in g++,
> because It is useless.

It's not useless.  I suggest you take your questions to an appropriate
newsgroup (e.g. comp.lang.c++).

> > but If I change "A b();" to "A b(1);",It will be right and the behaviour
> is
> > as I had said.
> > It show us that the c++ compiler do not take it as local function
> > declaration.

No, it just shows that the two declarations are not the same.

Neil.


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