This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] C++ error reporting improvement.



On 2006-02-19, at 17:39, Gabriel Dos Reis wrote:
| struct boom {
|      int boom;

this is not valid C++.

Pardon, but unsurprisingly GCC doesn't share your oppinnion:


ejd136:~ dalecki$ gcc -c test.C
ejd136:~ dalecki$ cat test.C
struct boom {
    int boom;
} boom;

enum bang { b } bang;
ejd136:~ dalecki$


the community. The vaste majority of the C++ programmers write

    ifstream is;
    exception e;

not

   struct ifstream is;
   struct exception e;

I beg to differ in case of enumerations.


Marcin Dalecki



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]