Thread: gcc bug ?
View Single Post
Re: gcc bug ?
Old
  (#4)
mirv
Super Moderator
 
mirv's Avatar
 
Status: Offline
Posts: 152
Join Date: Apr 2004
Default Re: gcc bug ? - 01-09-2004

By using util::sys() the compiler thinks you're trying to call a function [sys] in namespace util. The only thing it can match it against is a variable - hence the compiler output. If some variations of the compiler pick it up as a variable first, then it will still compile - the but the code is ambiguous in this respect and so should be changed anyway.

Also unless you mean to use things like operator overloading (+, -, *, /, etc) with a class, you should probably try and avoid the name "operator" for a function, as it may also cause a few complications.


mirv the Silly Fish.
  
Reply With Quote