diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1999-08-07 01:01:54 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1999-08-06 21:01:54 -0400 |
commit | 6ad073329cea8de835c2939dfb40c305f5568b72 (patch) | |
tree | 0207ce2b34a5962b32c2886da0b90ccf59340bee /gcc/cp/lex.c | |
parent | 446588abcb3251b1ef52cdab8f7b761354c1f8d6 (diff) | |
download | gcc-6ad073329cea8de835c2939dfb40c305f5568b72.zip gcc-6ad073329cea8de835c2939dfb40c305f5568b72.tar.gz gcc-6ad073329cea8de835c2939dfb40c305f5568b72.tar.bz2 |
decl.c (lookup_name_real): Set the complain flag if we're looking for a namespace member.
* decl.c (lookup_name_real): Set the complain flag if we're
looking for a namespace member.
* lex.c (real_yylex): We can have a number with no digits.
* cvt.c (cp_convert_to_pointer): Don't force pmf conversions.
* search.c (binfo_from_vbase): New fn.
* cp-tree.h: Declare it.
* cvt.c (cp_convert_to_pointer): Use it to diagnose conversion
from pointer to member of virtual base.
* typeck.c (get_delta_difference): Likewise.
From-SVN: r28560
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r-- | gcc/cp/lex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 5afda55..e423652 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -3973,8 +3973,9 @@ real_yylex () } } + /* This can happen on input like `int i = 0x;' */ if (numdigits == 0) - my_friendly_abort (990710); + error ("numeric constant with no digits"); if (largest_digit >= base) error ("numeric constant contains digits beyond the radix"); |