This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 245275 - No hypertext link to the origin of a C++ error
Summary: No hypertext link to the origin of a C++ error
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: PC Linux
: P4 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-26 21:31 UTC by jackua
Modified: 2015-01-17 20:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test case generating described messages (511 bytes, application/x-gzip)
2014-06-26 21:31 UTC, jackua
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jackua 2014-06-26 21:31:50 UTC
Created attachment 147794 [details]
test case generating described messages

In the attached testcase GCC generates these messages:
  gcc -c nb2.cpp
  sdl.h: In member function 'void std::vector<_Tp, _Alloc>::resize(size_t, _Tp) [with _Tp = SdlTlink, _Alloc = std::allocator<SdlTlink>]':
  sdl.h:10:   instantiated from 'size_t SdlTable<Telem>::AddElement() [with Telem = SdlTlink]'
  nb2.cpp:9:   instantiated from here
  sdl.h:10: error: no matching function for call to 'SdlTlink::SdlTlink()'
  sdl.h:22: note: candidates are: SdlTlink::SdlTlink(int, int)
  sdl.h:19: note:                 SdlTlink::SdlTlink(const SdlTlink&)
  gmake: *** [nb2] Error 1

NetBeans creates hyperlinks for all lines with line numbers except the most important one:
  nb2.cpp:9:   instantiated from here

Please fix.

Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-1758-on-20140606)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 2
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 2.6.18-308.el5 running on i386; ANSI_X3.4-1968; en_US (nb)

Please create a C++ project using existing sources and Makefile.
Any version
Comment 1 Alexander Simon 2014-06-27 04:51:49 UTC
Hi 

Please try development build 201406270001.
Does it have the issue?

By the way the bug is reproducible on GNU 4.4 and does not reproducible on next versions.

Thanks,
Alexander
Comment 2 jackua 2014-06-27 05:35:47 UTC
Honestly, I have no bandwidth to play with versions for so minor issues.  I spent time on extracting the code and that's all I could do at the moment.  I can wait for 1-2-10 weeks until the fix will be auto-updated.
I believe the testing is easy enough in this case.
Regards
Comment 3 henk89 2014-11-25 10:59:56 UTC
Unable to reproduce with g++ 4.9
Comment 4 jackua 2015-01-17 20:18:55 UTC
Yesterday I tried to debug 64-bit app built with gcc 4.4.5 and using gdb 7.7 or 7.8.  gdb under NB (8.0.2) failed as described.  Under ddd I could attach the app without any unusual messages and did debugging successfully, several times.