public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10750: [3.4 regression] error with using template template expression in static const initializer
@ 2003-05-12 15:36 bangerth
  0 siblings, 0 replies; only message in thread
From: bangerth @ 2003-05-12 15:36 UTC (permalink / raw)
  To: gawrilow, gcc-bugs, gcc-prs, nobody

Old Synopsis: 3.4 parser error with template template parameters
New Synopsis: [3.4 regression] error with using template template expression in static const initializer

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon May 12 15:36:02 2003
State-Changed-Why:
    Confirmed. A regression on mainline w.r.t. 3.3.
    
    For reference, here is the code:
    ------------------------
    template <typename T,
              template <typename> class P>
    struct C {
       static const bool flag = P<T>::flag;
       static const bool value = flag;
    };
    ------------------------------
    
    g/x> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c x.cc
    g/x>
    g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
    x.cc:5: error: `C<T, P>::flag' cannot appear in a constant-expression

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10750


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-12 15:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-12 15:36 c++/10750: [3.4 regression] error with using template template expression in static const initializer bangerth

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).