This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR c++/36475 [gomp] register keyword in openmp handled for-loop fails


Manuel López-Ibáñez wrote:

> 2008-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
> 
> 	PR c++/36475
> cp/
> 	* parser.c (cp_parser_type_specifier): If we found something
> 	that is not allowed at this point, just say so.
> testsuite/
> 	* g++.dg/gomp/pr36475.C: New.

This makes the assumption that we are not parsing tentatively --
diagnostics can generally only be issued when not parsing tentatively.
I doubt that this is true in this case.  I suspect that either you
should be doing something in cp_parser_omp_for_loop to issue these errors.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]