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

           Summary: [4.6 Regression] ICE: tree check: expected tree_vec,
                    have error_mark in tsubst_template_args, at
                    cp/pt.c:8969 on invalid code
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz


Created attachment 23531
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23531
reduced testcase

$ gcc testcase.C
testcase.C:5:12: error: 'double' is not a valid type for a template constant
parameter
testcase.C:8:16: error: 'double' is not a valid type for a template constant
parameter
testcase.C:8:43: error: 'N' was not declared in this scope
testcase.C:10:3: error: '<type error>' is not a valid type for a template
constant parameter
testcase.C:10:3: internal compiler error: tree check: expected tree_vec, have
error_mark in tsubst_template_args, at cp/pt.c:8969
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


Tested revisions:
r170622 - crash
4.5 r170013 - OK

Reply via email to