www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++.beta - [bug] DMC 8.48 ie: ph 1848

↑ ↓ ← Nic Tiger <g_tiger progtech.ru> writes:
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

when compiling attached file (containing a lot of macroses) with
	dmc -c bug.cpp

I get:

nbytes = 65736, ph_maxsize = 65520
Internal error: ph 1848
Oct 17 2006
Walter Bright <newshound digitalmars.com> writes:
Looks like the problem is the macro expansion text is getting bigger 
than 64K.
Oct 18 2006
↑ ↓ Nic Tiger <g_tiger progtech.ru> writes:
Walter Bright wrote:
 
 Looks like the problem is the macro expansion text is getting bigger 
 than 64K.

BTW, Intel Compiler 8.1 just hangs when trying to compile this code :) DMC was chosen to verify things about MACRO/inline expansion Does DMC also expand all code of inline function into one string? In Intel comppiler this leads to problems with __asm in inline functions Sincerely yours, Nic Tiger
Oct 20 2006
↑ ↓ → Walter Bright <newshound digitalmars.com> writes:
Nic Tiger wrote:
 Walter Bright wrote:
 Looks like the problem is the macro expansion text is getting bigger 
 than 64K.


Probably <g>.
 BTW, Intel Compiler 8.1 just hangs when trying to compile this code :)
 DMC was chosen to verify things about MACRO/inline expansion
 
 Does DMC also expand all code of inline function into one string?

No. It inserts the intermediate code.
 In Intel comppiler this leads to problems with __asm in inline functions
 
 Sincerely yours,
   Nic Tiger

Oct 21 2006
→ Walter Bright <newshound digitalmars.com> writes:
The new beta should fix it, but you'll also need to use the -HP299 switch.
Oct 29 2006