[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::c_plus_plus

Title:C++
Notice:Read 1.* and use keywords (e.g. SHOW KEY/FULL KIT_CXX_VAX_VMS)
Moderator:DECCXX::AMARTIN
Created:Fri Nov 06 1987
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3604
Total number of notes:18242

3446.0. "Fatal memory access violation" by FLMG12::AXPDEVELOPER (AXP-developer support) Wed Feb 12 1997 21:05

Customer reported a problem with DEC UNIX v3.2c and v4.0a, with v5.3 and v5.4 of
C++.  Code fails on "type-def of ENUM as 'template argument'" with memory access
violation (buss error or segmentation fault) has occurred.  Please submit a
problem report.

T.RTitleUserPersonal
Name
DateLines
3446.1FLMG12::AXPDEVELOPERAXP-developer supportWed Feb 12 1997 21:1441
Continuation of error report is as follows:

Bug SVRqa08871			DEC			Submitted 970120
Assigned defect report		cxx, version 5.4	assigned 970120	

	"cxx fails on typedef of enum as template argument"

Detection information		Laboratory information		H=2

	Test program name:	bug1.cc
	Machine Type:		alpha
	Version of OS:		3.2

Bug SVRqa08871			DEC			Enclosure 1 of 1
				cxx			added 970120 by fbw

		- problem description --

Get the diagnostic:

cxx: Fatal:  A memory access violation (bus error or segmentation fault) has
	occurred.  Please submit a problem report.

when executing:

cxx bug1.cc


   void add (T value) ;
};

typedef enum {
  myval
} mytype;

class myclass : public mytemplate <mytype>  {
public:
  myclass () {
    add (myval);
    }
}; 
3446.2FLMG12::AXPDEVELOPERAXP-developer supportWed Feb 12 1997 21:253
called customer back to find out what switches they were using and they said
no switches at all.  In fact they complained that when they tried to use the 
optimization switch, the got additional errors.
3446.3FLMG12::AXPDEVELOPERAXP-developer supportThu Feb 13 1997 18:503
Called customer back today, they said they upgraded the O/S to DEC UNIX 4.0B and
used the new C++ version of v5.5.  The program still gets the same error message
of the fatal error.