This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug other/42713] New: [4.5 Regression] ICE - segfault in tsubst


seen with trunk 20100112:

$ g++ -c ../DemonsRegistration.ii 
In file included from
/scratch/packages/tmp/rebuild/slicer-3.4.0~svn10438/Applications/CLI/DiffeomorphicDemonsRegistration/itkGridForwardWarpImageFilter.h:120:0,
                 from
/scratch/packages/tmp/rebuild/slicer-3.4.0~svn10438/Applications/CLI/DiffeomorphicDemonsRegistration/DemonsRegistration.cxx:48:
/scratch/packages/tmp/rebuild/slicer-3.4.0~svn10438/Applications/CLI/DiffeomorphicDemonsRegistration/itkGridForwardWarpImageFilter.txx:
In constructor 'itk::GridForwardWarpImageFilter<TDeformationField,
TOutputImage>::GridForwardWarpImageFilter() [with TDeformationField =
itk::Image<itk::Vector<float>, 3u>, TOutputImage = itk::Image<unsigned char,
3u>]':
/scratch/packages/tmp/rebuild/slicer-3.4.0~svn10438/Applications/CLI/DiffeomorphicDemonsRegistration/itkGridForwardWarpImageFilter.h:49:125:
  instantiated from 'static itk::GridForwardWarpImageFilter<TDeformationField,
TOutputImage>::Pointer itk::GridForwardWarpImageFilter<TDeformationField,
TOutputImage>::New() [with TDeformationField = itk::Image<itk::Vector<float>,
3u>, TOutputImage = itk::Image<unsigned char, 3u>,
itk::GridForwardWarpImageFilter<TDeformationField, TOutputImage>::Pointer =
itk::SmartPointer<itk::GridForwardWarpImageFilter<itk::Image<itk::Vector<float>,
3u>, itk::Image<unsigned char, 3u> > >]'
/scratch/packages/tmp/rebuild/slicer-3.4.0~svn10438/Applications/CLI/DiffeomorphicDemonsRegistration/DemonsRegistration.cxx:871:85:
  instantiated from 'void<unnamed>::DoDemonsRegistration(<unnamed>::arguments)
[with unsigned int Dimension = 3u]'
/scratch/packages/tmp/rebuild/slicer-3.4.0~svn10438/Applications/CLI/DiffeomorphicDemonsRegistration/DemonsRegistration.cxx:1018:35:
  instantiated from here
/scratch/packages/tmp/rebuild/slicer-3.4.0~svn10438/Applications/CLI/DiffeomorphicDemonsRegistration/itkGridForwardWarpImageFilter.txx:23:3:
internal compiler error: Segmentation fault
Please submit a full bug report,


Program received signal SIGSEGV, Segmentation fault.
0x00000000004d040b in tsubst (t=0x7fffee844bd0, args=0x7fffea07e210,
complain=3, in_decl=0x7fffee347ac8) at ../../src/gcc/cp/pt.c:9870
9870                if (arg && TREE_CODE (arg) == ARGUMENT_PACK_SELECT)
(gdb) p arg
$1 = (tree) 0x3
(gdb) bt
#0  0x00000000004d040b in tsubst (t=0x7fffee844bd0, args=0x7fffea07e210,
complain=3, in_decl=0x7fffee347ac8) at ../../src/gcc/cp/pt.c:9870
#1  0x00000000004d3fdb in tsubst_template_args (t=<value optimized out>,
args=<value optimized out>, complain=<value optimized out>, 
    in_decl=<value optimized out>) at ../../src/gcc/cp/pt.c:8377
#2  0x00000000004d0de1 in tsubst (t=0x7fffee84de70, args=0x7fffea07e210,
complain=3, in_decl=0x7fffee347ac8) at ../../src/gcc/cp/pt.c:9732
#3  0x00000000004d046f in tsubst (t=0x7fffee84f498, args=0x7fffea07e210,
complain=3, in_decl=0x7fffee347ac8) at ../../src/gcc/cp/pt.c:10265
#4  0x00000000004d3fdb in tsubst_template_args (t=<value optimized out>,
args=<value optimized out>, complain=<value optimized out>, 
    in_decl=<value optimized out>) at ../../src/gcc/cp/pt.c:8377
#5  0x00000000004dab8b in tsubst_aggr_type (t=0x7fffee8bd888,
args=0x7fffea07e210, complain=3, in_decl=0x7fffee347ac8, entering_scope=0)
    at ../../src/gcc/cp/pt.c:8543
#6  0x00000000004d4373 in tsubst_qualified_id (qualified_id=0x7fffee37ba80,
args=0x7fffea07e210, complain=3, in_decl=<value optimized out>, 
    done=<value optimized out>, address_p=<value optimized out>) at
../../src/gcc/cp/pt.c:10550
#7  0x00000000004d2241 in tsubst_copy_and_build (t=0x7fffee37ba80,
args=0x7fffea07e210, complain=3, in_decl=0x7fffee347ac8, function_p=0 '\000', 
    integral_constant_expression_p=0 '\000') at ../../src/gcc/cp/pt.c:12001
#8  0x00000000004d234e in tsubst_copy_and_build (t=0x7fffee390040,
args=0x7fffea07e210, complain=3, in_decl=0x7fffee347ac8, function_p=0 '\000', 
    integral_constant_expression_p=<value optimized out>) at
../../src/gcc/cp/pt.c:12045
#9  0x00000000004cd891 in tsubst_expr (t=0x7fffee390040, args=<value optimized
out>, complain=3, in_decl=0x7fffee347ac8, 
    integral_constant_expression_p=<value optimized out>) at
../../src/gcc/cp/pt.c:11747
#10 0x00000000004ce2b2 in tsubst_expr (t=0x7fffee38c930, args=<value optimized
out>, complain=3, in_decl=0x7fffee347ac8, 
    integral_constant_expression_p=<value optimized out>) at
../../src/gcc/cp/pt.c:11346
#11 0x00000000004ce215 in tsubst_expr (t=<value optimized out>, args=<value
optimized out>, complain=3, in_decl=0x7fffee347ac8, 
    integral_constant_expression_p=<value optimized out>) at
../../src/gcc/cp/pt.c:11332
#12 0x00000000004cd904 in tsubst_expr (t=0x7fffee37cac0, args=<value optimized
out>, complain=3, in_decl=0x7fffee347ac8, 
    integral_constant_expression_p=<value optimized out>) at
../../src/gcc/cp/pt.c:11488
#13 0x00000000004ce215 in tsubst_expr (t=<value optimized out>, args=<value
optimized out>, complain=3, in_decl=0x7fffee347ac8, 
    integral_constant_expression_p=<value optimized out>) at
../../src/gcc/cp/pt.c:11332
#14 0x00000000004cd904 in tsubst_expr (t=0x7fffee528f40, args=<value optimized
out>, complain=3, in_decl=0x7fffee347ac8, 
    integral_constant_expression_p=<value optimized out>) at
../../src/gcc/cp/pt.c:11488
#15 0x00000000004dbe0f in instantiate_decl (d=<value optimized out>,
defer_ok=<value optimized out>, expl_inst_class_mem_p=<value optimized out>)
    at ../../src/gcc/cp/pt.c:16640
#16 0x00000000004df064 in instantiate_pending_templates (retries=<value
optimized out>) at ../../src/gcc/cp/pt.c:16737
#17 0x00000000004f2d15 in cp_write_global_declarations () at
../../src/gcc/cp/decl2.c:3511
#18 0x000000000079f3a6 in compile_file (argc=12, argv=0x7fffffffe5f8) at
../../src/gcc/toplev.c:1065
#19 do_compile (argc=12, argv=0x7fffffffe5f8) at ../../src/gcc/toplev.c:2405
#20 toplev_main (argc=12, argv=0x7fffffffe5f8) at ../../src/gcc/toplev.c:2447
#21 0x00007ffff616cabd in __libc_start_main () from /lib/libc.so.6
#22 0x000000000049f179 in _start ()


-- 
           Summary: [4.5 Regression] ICE - segfault in tsubst
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: doko at ubuntu dot com


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]