public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/10750: 3.4 parser error with template template parameters
@ 2003-05-12 14:06 gawrilow
  0 siblings, 0 replies; only message in thread
From: gawrilow @ 2003-05-12 14:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10750
>Category:       c++
>Synopsis:       3.4 parser error with template template parameters
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Mon May 12 14:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Ewgenij Gawrilow
>Release:        3.4 20030509 (experimental)
>Organization:
>Environment:
RedHat 7.3 on an Athlon PC

Configured with: ../gcc-3.4/gcc/configure --enable-languages=c++ --enable-shared --with-cpu=athlon --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/local/include/c++/3.4
>Description:
The attached (syntactically correct) code causes an erroneous error message:

test.cc:6: error: `list_search<First, Second, Predicate>::answer' cannot appear in a constant-expression.

Old parser (3.0 .. 3.3) has not any problems with this.
>How-To-Repeat:
just compile it
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.cc"

dGVtcGxhdGUgPHR5cGVuYW1lIEZpcnN0LCB0eXBlbmFtZSBTZWNvbmQsIHRlbXBsYXRlIDx0eXBl
bmFtZSx0eXBlbmFtZT4gY2xhc3MgUHJlZGljYXRlPgpzdHJ1Y3QgbGlzdF9zZWFyY2ggewogICAv
Ly8gd2hldGhlciBhdCBsZWFzdCBvbmUgcGFpciBmb3VuZAogICBzdGF0aWMgY29uc3QgYm9vbCBh
bnN3ZXI9UHJlZGljYXRlPEZpcnN0LFNlY29uZD46OmFuc3dlcjsKICAgLy8vIHdoZXJlIGl0IHdh
cyBmb3VuZAogICBzdGF0aWMgY29uc3QgaW50IHBvcz0gYW5zd2VyID8gMCA6IC0xOwp9Owo=


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

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

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-12 14:06 c++/10750: 3.4 parser error with template template parameters gawrilow

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