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: Update pass manager to handle generate_summary/transform functions


This patch produces a very interesting regression. If I compile the
following code with -Wall -Werror -O2, it will print "note: 'abc' was
declared here" but not the rest of the warning. cc1plus also returns
0, despite -Werror.

--------------------------------------------------------------------------
class basic_streambuf     {
 public:   virtual       ~basic_streambuf()       {
 }
};
class basic_ostream   {

# 492 "foo" 3
};
class basic_stringbuf : public basic_streambuf     {
};
class ostringstream     {
 private:  basic_stringbuf _M_stringbuf;
};
void   f(long double __v);
inline void f4(long value) {
  ostringstream s;
  f (value);
}
inline void f3( const long& value) {
  f4(value);
};

# 39 "foo2"
void f2() {
  long abc;
  f3(abc);
}
long test123;
void f1()  {
  f3(test123);
}
--------------------------------------------------------------------------

Cheers,
-- 
Rafael Avila de Espindola

Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland

Registered in Dublin, Ireland
Registration Number: 368047


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