olegantonyan / googlemock

Automatically exported from code.google.com/p/googlemock
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

gmock-more-actions_test broken on VS2008 #148

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Building gmock tests  under VS2008 (rel 1.6) produces the following errors:

2>Compiling...
2>gmock-more-actions_test.cc
3>Compiling...
3>gmock-more-actions_test.cc
4>------ Build started: Project: gmock-generated-function-
mockers_test, Configuration: Debug Win32 ------
5>------ Build started: Project: gmock-generated-actions_test,
Configuration: Debug Win32 ------
4>Compiling...
4>gmock-generated-function-mockers_test.cc
5>Compiling...
5>gmock-generated-actions_test.cc
2>C:\Users\dave\Documents\Visual Studio 2008\Projects\gtest\google
\gmock\gtest\include\gtest/internal/gtest-tuple.h(309) : error C2220:
warning treated as error - no 'object' file generated
2>        ..\..\..\..\..\..\..\Documents\Visual Studio 2008\Projects
\gtest\google\gmock\test\gmock-more-actions_test.cc(329) : see
reference to function template instantiation
'std::tr1::tuple<T0,T1,T2,T3>::tuple<int,int,double,const char*>(const
std::tr1::tuple<T0,T1,T2,const char *,T4,T5,T6,T7,T8,T9> &)' being
compiled
2>        with
2>        [
2>            T0=int,
2>            T1=int,
2>            T2=double,
2>            T3=const
std::basic_string<char,std::char_traits<char>,std::allocator<char>> &,
2>            T4=void,
2>            T5=void,
2>            T6=void,
2>            T7=void,
2>            T8=void,
2>            T9=void
2>        ]
2>C:\Users\dave\Documents\Visual Studio 2008\Projects\gtest\google
\gmock\gtest\include\gtest/internal/gtest-tuple.h(309) : warning
C4413: ' ' : reference member is initialized to a temporary that
doesn't persist after the constructor exits
3>C:\Users\dave\Documents\Visual Studio 2008\Projects\gtest\google
\gmock\gtest\include\gtest/internal/gtest-tuple.h(309) : error C2220:
warning treated as error - no 'object' file generated
3>        ..\..\..\..\..\..\..\Documents\Visual Studio 2008\Projects
\gtest\google\gmock\test\gmock-more-actions_test.cc(329) : see
reference to function template instantiation
'std::tr1::tuple<T0,T1,T2,T3>::tuple<int,int,double,const char*>(const
std::tr1::tuple<T0,T1,T2,const char *,T4,T5,T6,T7,T8,T9> &)' being
compiled
3>        with
3>        [
3>            T0=int,
3>            T1=int,
3>            T2=double,
3>            T3=const
std::basic_string<char,std::char_traits<char>,std::allocator<char>> &,
3>            T4=void,
3>            T5=void,
3>            T6=void,
3>            T7=void,
3>            T8=void,
3>            T9=void
3>        ]
3>C:\Users\dave\Documents\Visual Studio 2008\Projects\gtest\google
\gmock\gtest\include\gtest/internal/gtest-tuple.h(309) : warning
C4413: ' ' : reference member is initialized to a temporary that
doesn't persist after the constructor exits
4>..\..\..\..\..\..\..\Documents\Visual Studio 2008\Projects\gtest
\google\gmock\test\gmock-generated-function-mockers_test.cc(157) :
error C2220: warning treated as error - no 'object' file generated
4>..\..\..\..\..\..\..\Documents\Visual Studio 2008\Projects\gtest
\google\gmock\test\gmock-generated-function-mockers_test.cc(133) :
warning C4373:
'testing::gmock_generated_function_mockers_test::MockFoo::TakesConst':
virtual function overrides
'testing::gmock_generated_function_mockers_test::FooInterface::TakesConst',
previous versions of the compiler did not override when parameters
only differed by const/volatile qualifiers
2>Build log was saved at "file://c:\users\dave\my documents\visual
studio 2008\projects\gtest\google\gmock\build\gmock-more-
actions_test.dir\Debug\BuildLog.htm"
4>        ..\..\..\..\..\..\..\Documents\Visual Studio 2008\Projects
\gtest\google\gmock\test\gmock-generated-function-
mockers_test.cc(91) : see declaration of
'testing::gmock_generated_function_mockers_test::FooInterface::TakesConst'
2>gmock-more-actions_test - 1 error(s), 1 warning(s)
3>Build log was saved at "file://c:\users\dave\my documents\visual
studio 2008\projects\gtest\google\gmock\build\gmock-more-
actions_no_exception_test.dir\Debug\BuildLog.htm"
3>gmock-more-actions_no_exception_test - 1 error(s), 1 warning(s)
5>C:\Users\dave\Documents\Visual Studio 2008\Projects\gtest\google
\gmock\gtest\include\gtest/internal/gtest-tuple.h(270) : error C2220:
warning treated as error - no 'object' file generated
5>        ..\..\..\..\..\..\..\Documents\Visual Studio 2008\Projects
\gtest\google\gmock\test\gmock-generated-actions_test.cc(379) : see
reference to function template instantiation
'std::tr1::tuple<T0,T1,T2>::tuple<const char*,int,int>(const
std::tr1::tuple<const char *,T1,T2,T3,T4,T5,T6,T7,T8,T9> &)' being
compiled
5>        with
5>        [
5>            T0=const
std::basic_string<char,std::char_traits<char>,std::allocator<char>> &,
5>            T1=int,
5>            T2=int,
5>            T3=void,
5>            T4=void,
5>            T5=void,
5>            T6=void,
5>            T7=void,
5>            T8=void,
5>            T9=void
5>        ]
5>C:\Users\dave\Documents\Visual Studio 2008\Projects\gtest\google
\gmock\gtest\include\gtest/internal/gtest-tuple.h(270) : warning
C4413: ' ' : reference member is initialized to a temporary that
doesn't persist after the constructor exits
4>Build log was saved at "file://c:\users\dave\my documents\visual
studio 2008\projects\gtest\google\gmock\build\gmock-generated-function-
mockers_test.dir\Debug\BuildLog.htm"
4>gmock-generated-function-mockers_test - 1 error(s), 1 warning(s)
5>Build log was saved at "file://c:\users\dave\my documents\visual
studio 2008\projects\gtest\google\gmock\build\gmock-generated-
actions_test.dir\Debug\BuildLog.htm"
5>gmock-generated-actions_test - 1 error(s), 1 warning(s)
6>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug Win32
------
6>Project not selected to build for this solution configuration
========== Build: 0 succeeded, 4 failed, 81 up-to-date, 2 skipped
==========

Original issue reported on code.google.com by vladlosev on 4 Oct 2011 at 5:02

GoogleCodeExporter commented 9 years ago
I have the same issue in VS2010.

Original comment by Savard.E...@gmail.com on 1 Nov 2011 at 5:44