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++/13106] [3.4 Regression] Wrong warning "no return statement ..." for void template function


------- Additional Comments From bangerth at dealii dot org  2003-11-18 20:27 -------
Or, even shorter:
-------------------
template <typename T> T dummy() { } 
 
int main() { 
    dummy<void>(); 
}
-------------------

g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc -Wall -W
x.cc: In function `T dummy()':
x.cc:1: warning: no return statement in function returning non-void

W.

-- 


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


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