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 262407 - unable to resolve type in aligned_storage
Summary: unable to resolve type in aligned_storage
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-12 12:51 UTC by Yankes
Modified: 2016-07-12 01:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yankes 2016-06-12 12:51:26 UTC
From MinGW <type_traits> header. 
C++11 is set as "-std=gnu++11" option in build configuration

-->%--->%--->%--->%--


  template<int _Len>
    struct __aligned_storage_msa
    {
      union __type
      {
	unsigned char __data[_Len];
	struct __attribute__((__aligned__)) { } __align;
      };
    };

  template<int _Len, int _Align =
	   __alignof__(typename __aligned_storage_msa<_Len>::__type)>
    struct aligned_storage
    {
      union type
      {
	unsigned char __data[_Len];
	struct __attribute__((__aligned__((_Align)))) { } __align;
      };
    };

   typename aligned_storage<10, alignof(void*)>::type x; //unable to resolve symbol `type`

-->%--->%--->%--->%--
Comment 1 petrk 2016-07-11 11:19:32 UTC
Fixed in http://hg.netbeans.org/cnd-main/rev/dc7d33e03a7a
Comment 2 Quality Engineering 2016-07-12 01:53:05 UTC
Integrated into 'main-silver', will be available in build *201607120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/dc7d33e03a7a
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixed #262407 - unable to resolve type in aligned_storage