[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CC Mode 5.28 (C++); indentation problem on class initializer list
From: |
Trevor Spiteri |
Subject: |
CC Mode 5.28 (C++); indentation problem on class initializer list |
Date: |
Wed, 24 Oct 2001 01:02:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011020 |
Emacs : GNU Emacs 21.1.1 (i686-pc-linux-gnu, X toolkit)
of 2001-10-23 on localhost.localdomain
Package: CC Mode 5.28 (C++)
Buffer Style: gnu
With the code below, trying to indent line 10 gives the error:
Scan error: "Unbalanced parentheses", 83, 1
This bug appears any time the -> operator is used in the initializer
list for a class constructor in C++.
This is the code that triggers the bug:
1 > struct b {
2 > int bi;
3 > };
4 > struct a {
5 > a(int i);
6 > int ai, aj;
7 > };
8 > a::a(b B)
9 > : ai(B->bi),
10 > aj(i)
11 > {
12 > }
- CC Mode 5.28 (C++); indentation problem on class initializer list,
Trevor Spiteri <=