Subject: 23.0.60; cc-mode cannot recognize pointer array declaretions

From: Feng Li <[email-masked]>
Date: Thu, 16 Oct 2008 17:37:51 +1100

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the [email-masked] mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

cc-mode cannot fontify the following code correctly, where
'prUTF16Char*' should have the type face and sampleRateStrings should
have the variable face, but they both are displayed in regular text
color.

prUTF16Char*            sampleRateStrings[] = {L"48000Hz"};

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
c:/emacs/etc/DEBUG for instructions.

In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-10-14 on SCUMBAG
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.2) --cflags -I../../emacs_libs/inc'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: C++/l

Minor modes in effect:
  cwarn-mode: t
  display-time-mode: t
  shell-dirtrack-mode: t
  recentf-mode: t
  cua-mode: t
  semantic-idle-scheduler-mode: t
  which-function-mode: t
  show-paren-mode: t
  global-auto-revert-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Recent input:
n P N P <return> <return> <return> <return> <return> 
<return> <return> <help-echo> <down-mouse-1> <mouse-movement> 
<mouse-2> <help-echo> <down-mouse-1> <mouse-1> <help-echo> 
<down> <M-up> <up> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <return> <return> <return> 
<return> <return> <return> <M-down> <M-up> <M-down> 
<up> <up> <up> <up> q C-x 5 0 <home> <home> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <S-up> <S-up> <S-up> 
<S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up> 
<S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up> <S-up> 
<S-up> <up> <next> <next> <next> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <end> <up> <end> <home> <end> 
<home> <down> <down> <down> <down> <down> <down> <down> 
<end> <up> <end> <home> <end> <C-left> <C-left> <C-left> 
<C-left> <C-left> <C-left> <C-left> <C-left> <C-left> 
<home> <home> <M-f5> <down> <down> <down> <down> <down> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<up> <up> <up> <C-right> <delete> C-z <down> <M-f5> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<end> <home> <prior> <prior> <prior> <next> <next> 
<next> <next> <prior> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <end> <S-home> <C-insert> <M-right> <M-left> 
<next> <next> <next> <next> <prior> <prior> <prior> 
<prior> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <down> <down> <down> <down> <down> <down> <M-right> 
<M-left> <up> <up> <up> <up> <home> M-x r e p o r t 
SPC <tab> C-g <end> <S-home> <C-insert> M-x <up> <up> 
<S-end> <delete> r e p o <tab> r t <tab> <return>

Recent messages:
Generating summary...done
Mark set
insert-for-yank: Buffer is read-only: #<buffer *Article*>
End of message [4 times]
Undo...
Undo!
Mark set
Quit
Mark set
Making completion list...

-- 
Feng Li

Blackmagic Design
[email-masked]
www.blackmagic-design.com