[Bug c/86668] mixing ansi prototype with K&R definition

2018-07-25 Thread amrosalem820 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86668 --- Comment #5 from amr --- I know all these rules , I mean he said the prototype in scope ,, he means inside main or outside in my example

[Bug c/86668] mixing ansi prototype with K&R definition

2018-07-25 Thread amrosalem820 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86668 --- Comment #3 from amr --- (In reply to Andreas Schwab from comment #1) > Please use gcc-h...@gcc.gnu.org for user questions. > > With the prototype in scope the non-prototyped definition of fun is > adjusted. This doesn't happen if the protot

[Bug c/86668] mixing ansi prototype with K&R definition

2018-07-25 Thread amrosalem820 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86668 --- Comment #2 from amr --- (In reply to Andreas Schwab from comment #1) > Please use gcc-h...@gcc.gnu.org for user questions. > > With the prototype in scope the non-prototyped definition of fun is > adjusted. This doesn't happen if the protot

[Bug c/86668] New: mixing ansi prototype with K&R definition

2018-07-24 Thread amrosalem820 at gmail dot com
t: c Assignee: unassigned at gcc dot gnu.org Reporter: amrosalem820 at gmail dot com Target Milestone: --- I mix ansi prototype with K&R definition ,, I know it will be an error if the parameters of the ansi form aren't compatible with the default promotions .. my prob