This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/10750: 3.4 parser error with template template parameters
- From: gawrilow at math dot tu-berlin dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 12 May 2003 13:58:21 -0000
- Subject: c++/10750: 3.4 parser error with template template parameters
- Reply-to: gawrilow at math dot tu-berlin dot de
>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=