Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #12764
| From | jacob navia <jacob@spamsink.net> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: bug in gcc? |
| Date | 2011-12-23 14:43 +0100 |
| Organization | lccwin |
| Message-ID | <jd20hd$obm$1@speranza.aioe.org> (permalink) |
| References | <d304891e-05dc-44f1-9df0-19ada4117dbb@g41g2000yqa.googlegroups.com> |
Le 23/12/11 12:04, Timon Gehr a écrit :
> struct B{int foo;};
>
> template<class T> int foo(T x){
> int y = x.foo<1>(0);
> return y;
> }
>
> int main(){
> int c = foo(B());
> }
It is specified in the Gnu standard paragraph 6.6.6:
"Note: Gnu is not foo. Thou shalt not use foo in your programs"
Confirmed for
gcc version 4.2.1 (Apple Inc. build 5664)
in my Mac.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
bug in gcc? Timon Gehr <timon.gehr@gmail.com> - 2011-12-23 03:04 -0800
Re: bug in gcc? "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2011-12-23 12:28 +0100
Re: bug in gcc? Timon Gehr <timon.gehr@gmail.com> - 2011-12-23 04:33 -0800
Re: bug in gcc? Rui Maciel <rui.maciel@gmail.com> - 2011-12-23 13:21 +0000
Re: bug in gcc? Timon Gehr <timon.gehr@gmail.com> - 2011-12-23 05:36 -0800
Re: bug in gcc? Marco Minutoli <mminutoli@gmail.com> - 2011-12-23 14:50 +0100
Re: bug in gcc? Rui Maciel <rui.maciel@gmail.com> - 2011-12-23 14:14 +0000
Re: bug in gcc? Timon Gehr <timon.gehr@gmail.com> - 2011-12-23 06:30 -0800
Re: bug in gcc? jacob navia <jacob@spamsink.net> - 2011-12-23 14:43 +0100
Re: bug in gcc? Johannes Schaub <schaub.johannes@googlemail.com> - 2011-12-24 17:22 +0100
Re: bug in gcc? Miles Bader <miles@gnu.org> - 2011-12-25 11:36 +0900
csiph-web