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]

Weren't C++ references added to GNU C as a language extention?


	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

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