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

[Bug c++/13592] [3.4 Regression] C++ parser regression


------- Additional Comments From bangerth at dealii dot org  2004-01-07 14:07 -------
Here is something that's more in our standard format: 
-------------------- 
struct S { 
    void operator()(int); 
}; 
 
struct A { 
    template <typename> void foo(); 
    S s; 
}; 
 
template <typename> void A::foo() { 
  s(0); 
} 
-------------------------- 
 
g/x> /home/bangerth/bin/gcc-3.3.3-pre/bin/c++ -c x.cc 
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc 
x.cc: In member function `void A::foo()': 
x.cc:11: error: call to non-function `A::s' 
 
W. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13592


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