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



             Bug #: 55248

           Summary: Segmentation Fault - instantiating template with

                    partial specialization

    Classification: Unclassified

           Product: gcc

           Version: 4.7.1

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: c++

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: dlari...@gmail.com





Created attachment 28645

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28645

pre-processed source that generates error



I am not sure what the root cause that triggered this error was, but the

pre-processed code is less than 8000 lines and I shouldn't be seeing an

internal compiler error. 



/Users/dlarimer/projects/atc/gate/fc/tests/json_rpc_test.cpp: In instantiation

of 'struct fc::json::detail::named_param<fc::tuple<int&, void, void, void,

void, void, void, void, void> >':

/Users/dlarimer/projects/atc/gate/fc/include/fc/json_rpc_connection.hpp:124:9: 

 required from 'fc::future<R> fc::json::rpc_connection::invoke(const

fc::string&, Args&&) [with R = int; Args = fc::tuple<int&, void, void, void,

void, void, void, void, void>]'

/Users/dlarimer/projects/atc/gate/fc/include/fc/json_rpc_client.hpp:33:64:  

required from 'fc::json::detail::rpc_member::functor(P&&, R (C::*)(Args ...),

const ptr&, const char*) [with R = int; C = test; P = int; Args = {int};

fc::json::rpc_connection::ptr =

fc::shared_ptr<fc::json::rpc_connection>]::<lambda(int)>'

/Users/dlarimer/projects/atc/gate/fc/include/fc/json_rpc_client.hpp:33:38:  

required from 'struct fc::json::detail::rpc_member::functor(P&&, R (C::*)(Args

...), const ptr&, const char*) [with R = int; C = test; P = int; Args = {int};

fc::json::rpc_connection::ptr =

fc::shared_ptr<fc::json::rpc_connection>]::<lambda(int)>'

/Users/dlarimer/projects/atc/gate/fc/include/fc/json_rpc_client.hpp:33:67:  

required from 'static std::function<fc::future<R>(Args ...)>

fc::json::detail::rpc_member::functor(P&&, R (C::*)(Args ...), const ptr&,

const char*) [with R = int; C = test; P = int; Args = {int};

fc::json::rpc_connection::ptr = fc::shared_ptr<fc::json::rpc_connection>]'

/Users/dlarimer/projects/atc/gate/fc/include/fc/json_rpc_client.hpp:49:11:  

required from 'void fc::json::detail::vtable_visitor::operator()(const char*,

Function&, MemberPtr) const [with Function =

std::function<fc::future<int>(int)>; MemberPtr = int (test::*)(int)]'

/Users/dlarimer/projects/atc/gate/fc/tests/json_rpc_test.cpp:31:1:   required

from 'void fc::detail::vtable<test, Transform>::visit_other(Visitor&&) [with T

= test; Visitor = fc::json::detail::vtable_visitor; Transform =

fc::json::detail::rpc_member]'

/Users/dlarimer/projects/atc/gate/fc/include/fc/json_rpc_client.hpp:74:11:  

required from 'void fc::json::rpc_client<InterfaceType>::init() [with

InterfaceType = test]'

/Users/dlarimer/projects/atc/gate/fc/include/fc/json_rpc_client.hpp:61:9:  

required from 'fc::json::rpc_client<InterfaceType>::rpc_client(const ptr&)

[with InterfaceType = test; fc::json::rpc_connection::ptr =

fc::shared_ptr<fc::json::rpc_connection>]'

/Users/dlarimer/projects/atc/gate/fc/tests/json_rpc_test.cpp:48:44:   required

from here

/Users/dlarimer/projects/atc/gate/fc/tests/json_rpc_test.cpp:14:1: internal

compiler error: Segmentation fault: 11

Reply via email to