This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Weren't C++ references added to GNU C as a language extention?
- To: egcs at egcs dot cygnus dot com
- Subject: Weren't C++ references added to GNU C as a language extention?
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Wed, 5 Jan 2000 14:23:52 -0500 (EST)
I have a fuzzy recollection that C++ style references were
added to GNU C as a language extension. But I can't seem to get it to
work.
E.g.
> int foo(int &f)
> {
> return f;
> }
compiles with g++, but not gcc. (I'm using a curent CVS.)
Am I totally off base, or is there a way to get references to work in
GNU C?
Thanks,
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions