Re: [Bug c/14366] variable previously declared `static' redeclared `extern' is valid ISO C - 3.4 and 4.0 regression

2006-05-18 Thread Neil Booth
pinskia at gcc dot gnu dot org wrote:- > Hmm, I think this causes the following invalid code to be accepted (but I am > not sure if this is invalid code or not): > enum in_section { in_toc }; > int f(void) { extern int in_toc; } > > -- > In 3.3 and before we got: > t1.c: In function `f':

Re: [Bug preprocessor/27750] New: bogus 'backslash-newline at end of file' warning

2006-05-24 Thread Neil Booth
sabre at nondot dot org wrote:- > $ gcc bug.c -Wall -pedantic -fsyntax-only -trigraphs -std=c99 > > yields: > bug.c:2:9: warning: trigraph ??/ converted to \ > bug.c:2:9: warning: backslash-newline at end of file > bug.c:2:1: warning: multi-line comment > bug.c:1: warning: ISO C forbids an empty

Re: [Bug c/25161] [4.0/4.1/4.2 Regression] Internal compiler error (segfault) instead of error message

2006-01-08 Thread Neil Booth
steven at gcc dot gnu dot org wrote:- > Sadly I have no idea what this variable is for, and Joseph did not add any Detecting jumps over variably modified types as required in C99. Neil.

Re: [Bug c/28768] [4.0/4.1/4.2 Regression] Preprocessor doesn't parse tokens correctly?

2006-08-23 Thread Neil Booth
pinskia at gcc dot gnu dot org wrote:- > > > --- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-18 05:11 > --- > Confirmed, a regression from 3.3.3. Rather, intended behaviour since 3.3.3. Neil.

Re: [Bug c/29444] parser bug for variable declaration immediately following case statement in switch block

2006-10-12 Thread Neil Booth
pinskia at gcc dot gnu dot org wrote:- > > > --- Comment #1 from pinskia at gcc dot gnu dot org 2006-10-12 20:47 > --- > This is not valid C code. > even though declarations can appear intermixed with statements, they are still > not a statement and cannot be placed anywhere a statemen

Re: [Bug c/29467] -ansi -pedantic accepts _Bool without diagnostic

2006-10-14 Thread Neil Booth
pinskia at gcc dot gnu dot org wrote:- > > > --- Comment #1 from pinskia at gcc dot gnu dot org 2006-10-14 15:29 > --- > Hmm, isn't _Bool in the implemenation keyword space anyways? It is, so is _Complex, and that is diagnosed. I'm not saying it's a conformance problem, just that it'

Re: [Bug c/23895] switch and struct

2005-09-15 Thread Neil Booth
pinskia at gcc dot gnu dot org wrote:- > > --- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-15 > 14:22 --- > Small testcase: > void f(int i) > { > switch (i) > { > case 1: > struct a *b; > } > } > > But IIRC this is invalid code as variable defintion

Re: [Bug preprocessor/9449] UCNs not recognized in identifiers (c++/c99)

2005-09-15 Thread Neil Booth
geoffk at gcc dot gnu dot org wrote:- > > --- Additional Comments From geoffk at gcc dot gnu dot org 2005-09-15 > 22:34 --- > (In reply to comment #39) > > Another reason why spelling needs preserving (in addition to implementing # > > correctly) is for the constraints on duplicate macr

Re: [Bug preprocessor/8270] [3.4/4.0/4.1 Regression] back-slash newline extension can't be removed

2005-10-26 Thread Neil Booth
pinskia at gcc dot gnu dot org wrote:- > > That would be the consensus from Andrew, not from people concerned that deal > > with language issues routinely. > > Wait a minute, if you actually look at the people agrueing for the change, it > is only Apple employees. Joe has said we should not chan

Re: [Bug c/23113] The -Wunused (value computed is not used) option missed an important case

2005-07-28 Thread Neil Booth
pinskia at gcc dot gnu dot org wrote:- > > --- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-28 > 17:28 --- > foo() has side effects. > *p++ has the side effect of increasing p by 1. > > -- >What|Removed |Added > --

Re: [Bug c/23365] Declaration within case statement produces syntax error

2005-08-12 Thread Neil Booth
jsm28 at gcc dot gnu dot org wrote:- > > --- Additional Comments From jsm28 at gcc dot gnu dot org 2005-08-12 > 20:54 --- > Labels can only be applied to statements, not declarations; see the C99 > standard. That would be a much better error message.

Re: [Bug preprocessor/20348] [4.0/4.1 Regression] File not included when file with same name is included before

2005-08-26 Thread Neil Booth
jakub at gcc dot gnu dot org wrote:- > > --- Additional Comments From jakub at gcc dot gnu dot org 2005-08-26 > 15:57 --- > This got broken by the libcpp/files.c part of > http://gcc.gnu.org/ml/gcc-patches/2004-06/msg00272.html > My understanding of the change was that this was just a p

Re: [Bug c/8268] no compile time array index checking

2006-02-18 Thread Neil Booth
rguenth at gcc dot gnu dot org wrote:- > Also make sure not to trip on > > typedef struct { > int len; > char str[4]; > } String; > > char foo(String *s) > { > return s->str[42]; > } That definitely deserves a warning. Neil.

Re: preprocessor bug: @ + MACRO does not work in gcc-3.0

2001-03-05 Thread Neil Booth
Zack Weinberg wrote:- > I agree with you that (2) is a bad solution. However, I don't like > (1) either. It is a major quiet change to the semantics of Objective > C. I have no way of evaluating how widespread this sort of thing is, > so I'm going to be really conservative. > > Also, looking

Re: bug in tradcpp.c and patch fixing it

2001-08-16 Thread Neil Booth
Sam Steingold wrote:- > there is a bug in gcc/tradcpp.c which can potentially cause a segfault. Hmmm. One down, 1632 to go. You couldn't patch all the others too? 8=) > the patch which fixes the bug, made against the files in the GCC-3.0 > distribution, is appended to this message. Thanks a

Re: [Bug preprocessor/19361] New: -MT option does not escape funny characters

2005-01-10 Thread Neil Booth
abbott at dima dot unige dot it wrote:- > The -MT option really does use precisely the specified string as the target. > It would be better if spaces (and other funny characters) were > escaped (using backslash) in the output. > > Note: for my purposes it would be enough to follow the proposa

Re: [Bug preprocessor/19836] -E -dD includes predefined macros

2005-02-09 Thread Neil Booth
jason at catapult dot com wrote:- > > --- Additional Comments From jason at catapult dot com 2005-02-09 06:27 > --- > (In reply to comment #1) > > This is documented to do this so this is not a bug. > > I thought -dD was supposed to NOT include predefined macros? Use -undef if you don

Re: [Bug preprocessor/17798] [3.4/4.0 Regression] high cpp memory usage with undefined symbols

2004-12-13 Thread Neil Booth
pinskia at gcc dot gnu dot org wrote:- > > --- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-14 > 05:53 --- > The first thing is that read_file_guts mallocs the whole file which seems > wrong. That accounts for > 500M. > The next problem is that keep every identifie