diff options
Diffstat (limited to 'gnu/usr.bin/gcc/cp/lex.c')
-rw-r--r-- | gnu/usr.bin/gcc/cp/lex.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/cp/lex.c b/gnu/usr.bin/gcc/cp/lex.c index 1861f9ea977..22763f56f62 100644 --- a/gnu/usr.bin/gcc/cp/lex.c +++ b/gnu/usr.bin/gcc/cp/lex.c @@ -3313,6 +3313,14 @@ real_yylex () token_buffer[0] = '^'; token_buffer[1] = 0; } + else if (ptr->token == NAMESPACE) + { + static int warned; + if (! warned) + warning ("namespaces are mostly broken in this version of g++"); + + warned = 1; + } value = (int) ptr->token; } |