https://bugs.kde.org/show_bug.cgi?id=276759

chaitanya srinivas ponnapalli <cponnapa...@mail.csuchico.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cponnapalli@mail.csuchico.e
                   |                            |du

--- Comment #1 from chaitanya srinivas ponnapalli 
<cponnapa...@mail.csuchico.edu> ---
Created attachment 98437
  --> https://bugs.kde.org/attachment.cgi?id=98437&action=edit
screen shot showing the scenario where kdevelop shows the access specifier of
union as private(and hence unaccessible), when it is not declared as public, in
the Class

Hi Alexander,

In cpp, the members of a union and struct are public by default. The members of
a class are private by default. So, in fact kdevelop correctly shows the member
variable double d as public. I've attached the screen shot showing the
scenarios where kdevelop shows the access specifier of union as private(and
hence unaccessible), when it is not declared as public, in the Class(in
screenshot_union1). Also, the screenshot 2 shows how the union can be accessed
when it's declared as public and also its member(double d), which can also be
accessed(as its public by default).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to