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++/16270] New: [3.5 regression] ICE on inner member template


Here's a pretty serious regression that triggers over and over 
again on my code (and I believe a good number of other codes as 
well): 
------------------------ 
template <typename T> class O { 
    class I { 
        class II { 
            void foo() const; 
        }; 
    }; 
}; 
 
template <typename T> 
void O<T>::I::II::foo() const {} 
-------------------- 
 
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c x.cc 
x.cc:10: internal compiler error: Segmentation fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
There is no way to work around this bug, so I guess it 
can be called critical. Note that this may or may not 
be related to PR 16162, which is a rejects-valid (no ICE) 
on similar code, with the difference that the inner class 
II is a template as well. 
 
W.

-- 
           Summary: [3.5 regression] ICE on inner member template
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org,mmitchel at gcc dot gnu
                    dot org


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


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