Closed GoogleCodeExporter closed 9 years ago
I think this is nvcc's bug. The following code which doesn't rely on Thrust
also
produces it:
#include <istream>
int main(void) {return 0;}
c:\dev\svn\thrust>nvcc -Xcompiler "/EHsc /W3 /nologo /Od /Zi /MDd" test.cu
test.cu
tmpxft_00000ec4_00000001-3_test.cudafe1.gpu
tmpxft_00000ec4_00000001-8_test.cudafe2.gpu
tmpxft_00000ec4_00000001-3_test.cudafe1.cpp
tmpxft_00000ec4_00000001-12_test.ii
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(1139) : warning
C4231: nonstandard extension used : 'extern' before template explicit
instantiation
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(1141) : warning
C4231: nonstandard extension used : 'extern' before template explicit
instantiation
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(1143) : warning
C4231: nonstandard extension used : 'extern' before template explicit
instantiation
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(1145) : warning
C4231: nonstandard extension used : 'extern' before template explicit
instantiation
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(1147) : warning
C4231: nonstandard extension used : 'extern' before template explicit
instantiation
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(1149) : warning
C4231: nonstandard extension used : 'extern' before template explicit
instantiation
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(1151) : warning
C4231: nonstandard extension used : 'extern' before template explicit
instantiation
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\istream(1153) : warning
C4231: nonstandard extension used : 'extern' before template explicit
instantiation
It compiles with cl.exe alone without warning.
Original comment by jaredhoberock
on 5 Oct 2009 at 6:59
marking as not a bug.
Original comment by jaredhoberock
on 6 Oct 2009 at 6:20
Original issue reported on code.google.com by
harr...@gmail.com
on 5 Oct 2009 at 2:44