public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55248] New: Segmentation Fault - instantiating template with partial specialization
@ 2012-11-09  5:30 dlarimer at gmail dot com
  2012-11-30  9:25 ` [Bug c++/55248] " paolo.carlini at oracle dot com
  2012-11-30  9:26 ` paolo.carlini at oracle dot com
  0 siblings, 2 replies; 3+ messages in thread
From: dlarimer at gmail dot com @ 2012-11-09  5:30 UTC (permalink / raw)
  To: gcc-bugs


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: unassigned@gcc.gnu.org
        ReportedBy: dlarimer@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/55248] Segmentation Fault - instantiating template with partial specialization
  2012-11-09  5:30 [Bug c++/55248] New: Segmentation Fault - instantiating template with partial specialization dlarimer at gmail dot com
@ 2012-11-30  9:25 ` paolo.carlini at oracle dot com
  2012-11-30  9:26 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-11-30  9:25 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-30 09:25:24 UTC ---
Created attachment 28835
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28835
mainline errors


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/55248] Segmentation Fault - instantiating template with partial specialization
  2012-11-09  5:30 [Bug c++/55248] New: Segmentation Fault - instantiating template with partial specialization dlarimer at gmail dot com
  2012-11-30  9:25 ` [Bug c++/55248] " paolo.carlini at oracle dot com
@ 2012-11-30  9:26 ` paolo.carlini at oracle dot com
  1 sibling, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-11-30  9:26 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-30 09:26:19 UTC ---
Mainline simply rejects the code with no ICE. If you have reasons to believe
the code is valid, please file a separate PR with a small reproducer, thanks.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-30  9:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-09  5:30 [Bug c++/55248] New: Segmentation Fault - instantiating template with partial specialization dlarimer at gmail dot com
2012-11-30  9:25 ` [Bug c++/55248] " paolo.carlini at oracle dot com
2012-11-30  9:26 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).