[Bug c++/26559] [4.0/4.1/4.2 Regression] ICE with __builtin_constant_p in template argument
------- Comment #2 from mmitchel at gcc dot gnu dot org 2006-06-15 03:26 -------
Subject: Bug 26559
Author: mmitchel
Date: Thu Jun 15 03:26:38 2006
New Revision: 114665
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114665
Log:
2006-06-14 Mark Mitchell <mark@codesourcery.com>
PR c++/26559
* c-common.h (c_finish_omp_atomic): Adjust declaration.
* c-omp.c (c_finish_omp_atomic): Return the expression to perform,
rather than calling add_stmt on it.
* c-parser.c (c_parser_omp_atomic): Adjust accordingly.
2006-06-14 Mark Mitchell <mark@codesourcery.com>
PR c++/26559
* pt.c (tsubst_expr): Use finish_omp_atomic.
(value_dependent_expression_p): All CALL_EXPRs are dependent.
* semantics.c (finish_omp_atomic): Rework to use standard
paradigms for handling non-dependent expressions.
2006-06-14 Mark Mitchell <mark@codesourcery.com>
PR c++/26559
* g++.dg/template/builtin1.C: New test.
* g++.dg/gomp/tpl-atomic-2.C: Remove XFAIL.
Added:
trunk/gcc/testsuite/g++.dg/template/builtin1.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-common.h
trunk/gcc/c-omp.c
trunk/gcc/c-parser.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/gomp/tpl-atomic-2.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26559
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
Reply to: