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 c++/51398] New: [4.7 Regression] ICE with invalid template parameter


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

             Bug #: 51398
           Summary: [4.7 Regression] ICE with invalid template parameter
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: reichelt@gcc.gnu.org


The following invalid code snippet troggers an ICE on trunk:

==================================
template<void, int N> struct A
{
  static const int i = N;
};
==================================

bug.cc:1:10: error: 'void' is not a valid type for a template non-type
parameter
bug.cc:3:24: internal compiler error: tree check: expected tree that contains
'decl common' structure, have 'error_mark' in parameter_of_template_p, at
cp/pt.c:8127
Please submit a full bug report, [etc.]


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