This is the mail archive of the gcc-bugs@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]

[Bug c/13321] sizeof of an array argument will always return 4


------- Additional Comments From gdr at integrable-solutions dot net  2003-12-05 21:44 -------
Subject: Re:  sizeof of an array argument will always return 4

"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| Not a bug, the sizeof an array argument is the same as the sizeof a pointer.

The resolution is right, but I don't think the justification is good.
When a function parameter is declared as array, it its type gets
adjusted to a pointer type (as part of the function's type
adjustement). 

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13321


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