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/31893] Please provide an "inout" attribute for function parameters.



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-05-10 23:00 -------
What are you doing, writting Fortran code in C? :) (really I am serious about
this one too)

> It seems that even if the argument is declared const foo_t * gcc assumes the
> function will initialize the data, which is rather ... erm... strange.

Why do you think it is strange? you can remove the const part in do_bar
anyways.


-- 


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


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