Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests fail to compile with VS2013 #122

Closed
amoldeshpande opened this issue Dec 6, 2014 · 1 comment
Closed

tests fail to compile with VS2013 #122

amoldeshpande opened this issue Dec 6, 2014 · 1 comment
Assignees

Comments

@amoldeshpande
Copy link

I:\github\protobuf\src\google/protobuf/reflection.h(61): error C2752: 'google::protobuf::internal::RefTypeTraits<T,void>' : more than one partial specialization matches the template argument list
1> with
1> [
1> T=google::protobuf::int64
1> ]
1> I:\github\protobuf\src\google/protobuf/repeated_field_reflection.h(261): could be 'google::protobuf::internal::RefTypeTraits<T,internal::enable_if<google::protobuf::internal::PrimitiveTraits::is_primitive,void>::type>'
1> I:\github\protobuf\src\google/protobuf/repeated_field_reflection.h(276): or 'google::protobuf::internal::RefTypeTraits<T,internal::enable_if<google::protobuf::internal::is_enum::value,void>::type>'

1> ..\src\google\protobuf\repeated_field_reflection_unittest.cc(531) : see reference to class template instantiation 'google::protobuf::RepeatedFieldRefgoogle::protobuf::int64,void' being compiled
1>I:\github\protobuf\src\google/protobuf/reflection.h(61): error C2027: use of undefined type 'google::protobuf::internal::RefTypeTraits<T,void>'
1> with
1> [
1> T=google::protobuf::int64
1> ]
1>I:\github\protobuf\src\google/protobuf/reflection.h(62): error C2027: use of undefined type 'google::protobuf::internal::RefTypeTraits<T,void>'
1> with
1> [
1> T=google::protobuf::int64
1> ]

I:\github\protobuf\src\google/protobuf/reflection.h(62): error C2146: syntax error : missing ';' before identifier 'AccessorType'
1>I:\github\protobuf\src\google/protobuf/reflection.h(62): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>I:\github\protobuf\src\google/protobuf/reflection.h(62): error C2602: 'google::protobuf::RepeatedFieldRefgoogle::protobuf::int64,void::AccessorType' is not a member of a base class of 'google::protobuf::RepeatedFieldRefgoogle::protobuf::int64,void'
1> I:\github\protobuf\src\google/protobuf/reflection.h(62) : see declaration of 'google::protobuf::RepeatedFieldRefgoogle::protobuf::int64,void::AccessorType'
1>I:\github\protobuf\src\google/protobuf/reflection.h(62): error C2868: 'google::protobuf::RepeatedFieldRefgoogle::protobuf::int64,void::AccessorType' : illegal syntax for using-declaration; expected qualified-name

1>I:\github\protobuf\src\google/protobuf/reflection.h(104): error C2027: use of undefined type 'google::protobuf::internal::RefTypeTraits<T,void>'
1> with
1> [
1> T=google::protobuf::int64
1> ]
1>I:\github\protobuf\src\google/protobuf/reflection.h(104): error C2146: syntax error : missing ';' before identifier 'AccessorType'
1>I:\github\protobuf\src\google/protobuf/reflection.h(104): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>I:\github\protobuf\src\google/protobuf/reflection.h(104): error C2602: 'google::protobuf::MutableRepeatedFieldRefgoogle::protobuf::int64,void::AccessorType' is not a member of a base class of 'google::protobuf::MutableRepeatedFieldRefgoogle::protobuf::int64,void'
1> I:\github\protobuf\src\google/protobuf/reflection.h(104) : see declaration of 'google::protobuf::MutableRepeatedFieldRefgoogle::protobuf::int64,void::AccessorType'
1>I:\github\protobuf\src\google/protobuf/reflection.h(104): error C2868: 'google::protobuf::MutableRepeatedFieldRefgoogle::protobuf::int64,void::AccessorType' : illegal syntax for using-declaration; expected qualified-name
1> repeated_field_unittest.cc
1> test_util.cc
1> text_format_unittest.cc
1> unknown_field_set_unittest.cc
1> wire_format_unittest.cc
1>..\src\google\protobuf\wire_format_unittest.cc(789): warning C4309: 'static_cast' : truncation of constant value
1>..\src\google\protobuf\wire_format_unittest.cc(794): warning C4309: 'static_cast' : truncation of constant value
1> cpp_test_bad_identifiers.pb.cc
1> unittest.pb.cc
1>google\protobuf\unittest.pb.cc(2480): error C2512: 'protobuf_unittest::anonymous-namespace'::TestAllTypesOneofInstance' : no appropriate default constructor available 1>google\protobuf\unittest.pb.cc(2539): error C2512: 'protobuf_unittest::anonymous-namespace'::TestOneofOneofInstance' : no appropriate default constructor available
1>google\protobuf\unittest.pb.cc(2554): error C2512: 'protobuf_unittest::anonymous-namespace'::TestOneof2OneofInstance' : no appropriate default constructor available 1>google\protobuf\unittest.pb.cc(2558): error C2512: 'protobuf_unittest::anonymous-namespace'::TestRequiredOneofOneofInstance' : no appropriate default constructor available
1> unittest_custom_options.pb.cc
1> unittest_embed_optimize_for.pb.cc
1> unittest_import.pb.cc
1> Generating Code...
1> Compiling...
1> unittest_import_public.pb.cc
1> unittest_lite_imports_nonlite.pb.cc
1> unittest_mset.pb.cc
1> unittest_no_generic_services.pb.cc
1> unittest_optimize_for.pb.cc
1>google\protobuf\unittest_optimize_for.pb.cc(155): error C2512: 'protobuf_unittest::`anonymous-namespace'::TestOptimizedForSizeOneofInstance' : no appropriate default constructor available
1> Generating Code...

@xfxyjwf xfxyjwf added this to the Release 3.0.0-alpha milestone Dec 8, 2014
@xfxyjwf xfxyjwf self-assigned this Dec 8, 2014
@xfxyjwf
Copy link
Contributor

xfxyjwf commented Dec 11, 2014

Fixed in 0eaae1e

@xfxyjwf xfxyjwf closed this as completed Dec 11, 2014
TeBoring pushed a commit to TeBoring/protobuf that referenced this issue Jan 19, 2019
Fix json parsing for Struct, ListValue and Value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants