BUG: anonymous namespace causes segment violation
Richard Kelly <[email protected]>
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Organization | Jet Propulsion Laboratory |
| Message-ID | <[email protected]> |
[Before I describe what appears to be a Synopsis bug, let me first thank
all the Synopsis developers for all their hard work. It looks like a
great product, and we hope it'll be very useful to us.]
I downloaded and built Synopsis according to the instructions. It works
correctly for some examples. However, it was unable to build its own
documentation, because the anonymous namespaces gave it fits. Here's an
example to illustrate the problem.
File Rmk1.cc:
namespace //Xyzzy
{
double foo( char* x, int a );
}
Command:
synopsis -p Cxx -f HTML -o Rmk1 Rmk1.cc
Output before core dump:
Segmentation Violation caught
processing Segmentation Violation caught
processing Segmentation Violation caught
[thousands of the above messages]
If you uncomment the namespace name, the example works fine. Or you can
remove the foo() declaration, and the problem remains. As far as I
know, I built synopsis correctly, but if I screwed up, could you please
point me in the right direction?
I'm using Python 2.3.3 and GCC 3.2.2 on a RedHat 9 system. I commented
out all the __STDC__ lines in ~/.synopsis/cpp_emulations, because ucpp
didn't like redefinition of the __STDC__ macro. Also, I get the same
results on a similar system that has GCC 3.4.3 installed instead.
Rick
--
Richard M Kelly [email protected]
[PGP => D5 C3 CC D2 B7 D0 A9 B0 D5 90 B2 55 5A 80 23 B6 FC AB 67 B4]