public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47511] New: [C++0x] ICE: unexpected ast of kind template_decl in potential_constant_expression_1, at cp/semantics.c:7711
@ 2011-01-28 12:38 marc.glisse at normalesup dot org
  2011-01-28 18:29 ` [Bug c++/47511] [4.6 Regression] " jakub at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: marc.glisse at normalesup dot org @ 2011-01-28 12:38 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [C++0x] ICE: unexpected ast of kind template_decl in
                    potential_constant_expression_1, at
                    cp/semantics.c:7711
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: marc.glisse@normalesup.org


namespace N {
    template <typename T> bool g( T ) {
        return true;
    }
    struct A { };
}
template <class T> void f(const T&) {
    N::A x;
    g(x) ;
}

$ c++ -std=gnu++0x -c a.cc
a.cc: In function 'void f(const T&)':
a.cc:9:7: sorry, unimplemented: unexpected ast of kind template_decl
a.cc:9:7: internal compiler error: in potential_constant_expression_1, at
cp/semantics.c:7711


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

end of thread, other threads:[~2011-02-11 20:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-28 12:38 [Bug c++/47511] New: [C++0x] ICE: unexpected ast of kind template_decl in potential_constant_expression_1, at cp/semantics.c:7711 marc.glisse at normalesup dot org
2011-01-28 18:29 ` [Bug c++/47511] [4.6 Regression] " jakub at gcc dot gnu.org
2011-01-28 19:42 ` hjl.tools at gmail dot com
2011-01-29  1:00 ` jason at gcc dot gnu.org
2011-02-08 14:57 ` rguenth at gcc dot gnu.org
2011-02-10 16:44 ` jason at gcc dot gnu.org
2011-02-11 20:23 ` jason at gcc dot gnu.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).