[Bug c++/55248] New: Segmentation Fault - instantiating template with partial specialization

2012-11-08 Thread dlarimer at gmail dot com


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 >':

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

 required from 'fc::future fc::json::rpc_connection::invoke(const

fc::string&, Args&&) [with R = int; Args = fc::tuple]'

/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]::'

/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]::'

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

required from 'static std::function(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]'

/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(int)>; MemberPtr = int (test::*)(int)]'

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

from 'void fc::detail::vtable::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::init() [with

InterfaceType = test]'

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

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

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

fc::shared_ptr]'

/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


[Bug c++/53651] New: seg fault when specifying using decltype(...)::method

2012-06-12 Thread dlarimer at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53651

 Bug #: 53651
   Summary: seg fault when specifying using decltype(...)::method
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: dlari...@gmail.com


Created attachment 27613
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27613
Source file that generated the error.

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin11/4.7.0/lto-wrapper
Target: x86_64-apple-darwin11
Configured with: ../gcc-4.7.0/configure --prefix=/opt/local
--build=x86_64-apple-darwin11
--enable-languages=c,c++,objc,obj-c++,lto,fortran,java
--libdir=/opt/local/lib/gcc47 --includedir=/opt/local/include/gcc47
--infodir=/opt/local/share/info --mandir=/opt/local/share/man
--datarootdir=/opt/local/share/gcc-4.7 --with-libiconv-prefix=/opt/local
--with-local-prefix=/opt/local --with-system-zlib --disable-nls
--program-suffix=-mp-4.7 --with-gxx-include-dir=/opt/local/include/gcc47/c++/
--with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local
--with-ppl=/opt/local --with-cloog=/opt/local --enable-cloog-backend=isl
--enable-stage1-checking --disable-multilib --enable-lto
--with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld
--with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket
--with-pkgversion='MacPorts gcc47 4.7.0_3'
Thread model: posix
gcc version 4.7.0 (MacPorts gcc47 4.7.0_3) 
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.4' '-v' '-save-temps' '-o' 'v5'
'-std=c++11' '-shared-libgcc' '-mtune=core2'
 /opt/local/libexec/gcc/x86_64-apple-darwin11/4.7.0/cc1plus -E -quiet -v
-D__DYNAMIC__ value5.cpp -fPIC -mmacosx-version-min=10.7.4 -mtune=core2
-std=c++11 -fpch-preprocess -o value5.ii
ignoring nonexistent directory
"/opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.0/../../../../../x86_64-apple-darwin11/include"
#include "..." search starts here:
#include <...> search starts here:
 /opt/local/include/gcc47/c++/
 /opt/local/include/gcc47/c++//x86_64-apple-darwin11
 /opt/local/include/gcc47/c++//backward
 /opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.0/include
 /opt/local/include
 /opt/local/lib/gcc47/gcc/x86_64-apple-darwin11/4.7.0/include-fixed
 /usr/include
 /System/Library/Frameworks
 /Library/Frameworks
End of search list.
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.4' '-v' '-save-temps' '-o' 'v5'
'-std=c++11' '-shared-libgcc' '-mtune=core2'
 /opt/local/libexec/gcc/x86_64-apple-darwin11/4.7.0/cc1plus -fpreprocessed
value5.ii -fPIC -quiet -dumpbase value5.cpp -mmacosx-version-min=10.7.4
-mtune=core2 -auxbase value5 -std=c++11 -version -o value5.s
GNU C++ (MacPorts gcc47 4.7.0_3) version 4.7.0 (x86_64-apple-darwin11)
compiled by GNU C version 4.7.0, GMP version 5.0.4, MPFR version 3.1.0-p3,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (MacPorts gcc47 4.7.0_3) version 4.7.0 (x86_64-apple-darwin11)
compiled by GNU C version 4.7.0, GMP version 5.0.4, MPFR version 3.1.0-p3,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: e694c643a962d7980e49500e9a4c6aa5
value5.cpp:38:76: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions