bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

builtin c++ parser bug : #if pifstack over flow


From: Hideki IWAMOTO
Subject: builtin c++ parser bug : #if pifstack over flow
Date: Sat, 21 Sep 2013 02:56:42 +0900

Hi. I have a problem on processing OpenH323 source file with gtags. 

- What is your environment (OS)?
  Fedora core 4

- Which version of GLOBAL are you using? 
  CVS head

- What did you do? (command line) 
  gtags

- What did you expect from it? 
  exit successfully

- What was occurred? (as is) 
  $ gtags
  gtags: #if pifstack over flow. [./h245_2.cxx]


h245_2.cxx causing the problem is attached.

The cause of this problem is that some "#endif" directives
are not processed by condition_macro().

------ exmple --------
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
H245_CustomPictureFormat_pixelAspectInformation::operator 
H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode &() const
#else // <<<====== This is not processed by condition_macro()
H245_CustomPictureFormat_pixelAspectInformation::operator 
H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode &()
{
#ifndef PASN_LEANANDMEAN
  PAssert(PIsDescendant(PAssertNULL(choice), 
H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode), PInvalidCast);
#endif
  return *(H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode 
*)choice;
}


H245_CustomPictureFormat_pixelAspectInformation::operator const 
H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode &() const
#endif // <<<====== This is not processed by condition_macro()
{
#ifndef PASN_LEANANDMEAN
  PAssert(PIsDescendant(PAssertNULL(choice), 
H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode), PInvalidCast);
#endif
  return *(H245_CustomPictureFormat_pixelAspectInformation_pixelAspectCode 
*)choice;
}
-----------------------
-- 
Hideki IWAMOTO <address@hidden>

Attachment: h245_2.cxx
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]