public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16716] New: [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name
@ 2004-07-26 14:59 bangerth at dealii dot org
  2004-07-26 15:00 ` [Bug c++/16716] " bangerth at dealii dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bangerth at dealii dot org @ 2004-07-26 14:59 UTC (permalink / raw)
  To: gcc-bugs

Take this (invalid, the "typename" shouldn't be there) piece of code: 
------------------- 
template <typename> class allocator; 
 
template<typename T> class vector { 
    typedef typename allocator<T> allocator_type; 
}; 
------------------ 
 
g/x> /home/bangerth/bin/gcc-3.2.3/bin/c++ -c x.cc 
x.cc:4: syntax error before `;' token 
 
g/x> /home/bangerth/bin/gcc-3.3*/bin/c++ -c x.cc 
x.cc:4: error: parse error before `;' token 
 
g/x> /home/bangerth/bin/gcc-3.4*/bin/c++ -c x.cc 
x.cc:4: error: expected nested-name-specifier 
x.cc:4: error: `allocator<T>' specified as declarator-id 
x.cc:4: error: two or more data types in declaration of `allocator<T>' 
x.cc:4: error: expected `;' before "allocator_type" 
 
g/x> /home/bangerth/bin/gcc-3.5*/bin/c++ -c x.cc 
x.cc:4: error: expected nested-name-specifier 
x.cc:4: internal compiler error: in 
cp_parser_parse_and_diagnose_invalid_type_name, at cp/parser.c:2268 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
That's a regression. 
 
W.

-- 
           Summary: [3.5 regression] ICE in
                    cp_parser_parse_and_diagnose_invalid_type_name
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-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


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-10-15 21:16 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-26 14:59 [Bug c++/16716] New: [3.5 regression] ICE in cp_parser_parse_and_diagnose_invalid_type_name bangerth at dealii dot org
2004-07-26 15:00 ` [Bug c++/16716] " bangerth at dealii dot org
2004-07-26 15:08 ` pinskia at gcc dot gnu dot org
2004-09-09  4:38 ` mmitchel at gcc dot gnu dot org
2004-09-14  0:29 ` [Bug c++/16716] [4.0 " cvs-commit at gcc dot gnu dot org
2004-09-14  0:33 ` mmitchel at gcc dot gnu dot org
2004-09-14 20:10 ` reichelt at gcc dot gnu dot org
2004-09-14 20:18 ` reichelt at gcc dot gnu dot org
2004-10-15 21:16 ` mmitchel at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).