This is the mail archive of the gcc-patches@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]

Re: [trunk][patch] Don't print warnings in mangle_decl


Rafael Espindola wrote:

> Not sure I understand the comment, but I found an error in the patch.
> It was not printing warnings for external functions and for functions
> used as a value. I have fixed that and added a testcase to the patch.
> 
> Is that the  problem you were referring to? :-)

No, the problem I was referring to was *variables*.  Like, for example,
static data members in templates:

  template <typename T>
  struct S {
    static int i;
  };

  template <typename T> int S<T>::i;

  void f() { return S<double>::i; }

That static data member is mangled; we should be checking the flag there.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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