[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

2533.0. "Const members in classes without constructors rejected as fatal error" by SMURF::LINDNER (Dave Lindner) Fri Apr 14 1995 17:27

T.RTitleUserPersonal
Name
DateLines
2533.1One person's musings...OOTOOL::HIGGSSQL is a camel in disguiseMon Apr 17 1995 14:3934
2533.2Here's a version that compiles...OOTOOL::HIGGSSQL is a camel in disguiseMon Apr 17 1995 14:5220
2533.3The standard says...QUARRY::lindnerDave LindnerTue Apr 18 1995 13:4738
2533.4QUARRY::lindnerDave LindnerTue Apr 18 1995 13:4831
2533.5Program wrong, but diagnostic has several problems...DECCXX::AMARTINAlan H. MartinTue Apr 18 1995 15:2452
2533.6FNDECCXX::AMARTINAlan H. MartinThu Feb 06 1997 13:0523
Re .0:

The following program unit:

"
typedef struct {
    const int a;
} bar;
"

will be diagnosed by DEC C++ V6.0 with:

"
"hello.cxx", line 1: warning: class "<unnamed>" defines no constructor to
          initialize the following:
            const member "<unnamed>::a"
  typedef struct {
                 ^
"

Note that there will be at least one more release of DEC C++
containing the bug before V6.0 becomes available.
                                /AHM