Testcase: template <class> struct View { int n; }; template <class ViewA> struct ViewDom : View<ViewA> { using View<ViewA>::n; ViewDom(); }; template <class ViewA> ViewDom<ViewA>::ViewDom() { char a[n]; } void element( ) { ViewDom<int> a; }
-- Summary: [4.2 Regression] Rejects VLA in template class's member with using Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28903