This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: `volatile' undeclared in class/function template.
- To: Jose dot Gomes at sophia dot inria dot fr
- Subject: Re: `volatile' undeclared in class/function template.
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Fri, 15 Oct 1999 10:08:41 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- References: <199910150736.JAA02706@atlantis.inria.fr>
> the following code generates a compile time error:
Jose,
Thanks for your bug report. I believe this is a known bug: "asm
volatile" statements don't work inside templates. This is fixed in the
mainline. Apparently, it won't be fixed for gcc 2.95.2.
Hope this helps,
Martin