Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #63463

Re: VS2015

From "Charles Richmond" <numerist@aquaporin4.com>
Newsgroups comp.lang.c
Subject Re: VS2015
Date 2015-06-17 16:18 -0500
Organization A noiseless patient Spider
Message-ID <mlso4c$fhr$1@dont-email.me> (permalink)
References <f7d2d395-4619-418b-8bdb-a38c322321eb@googlegroups.com><mvb3oal715qbbo0vfccpjjt391soglm01s@4ax.com><lnwpz2jjll.fsf@nuthaus.mib.org><5581BDAF.1090903@verizon.net> <20150617204429.6c71ddcc@maxa-pc>

Show all headers | View raw


"Melzzzzz" <mel@zzzzz.com> wrote in message 
news:20150617204429.6c71ddcc@maxa-pc...
> On Wed, 17 Jun 2015 14:34:23 -0400
> James Kuyper <jameskuyper@verizon.net> wrote:
>
>> On 06/17/2015 02:05 PM, Keith Thompson wrote:
>> > Barry Schwarz <schwarzb@dqel.com> writes:
>> >> On Wed, 17 Jun 2015 09:50:57 -0700 (PDT), esamiira@gmail.com wrote:
>> >>> Microsoft Visual Studio Community 2015 RC
>> >>> Version 14.0.22823.1 D14REL
>> >>> Microsoft .NET Framework
>> >>> Version 4.6.00057
>> >>>
>> >>> Installed Version: Community
>> >>>
>> >>>
>> >>> Windows 8.1
>> >>>
>> >>>
>> >>> When compiling with VS2013 I don't get an warning, but with
>> >>> VS2015 I get this warning.
>> >>>
>> >>>> c:\program files (x86)\microsoft visual studio
>> >>>> 14.0\vc\include\xlocale(654): warning C4302: 'type cast':
>> >>>> truncation from 'const wchar_t *' to 'unsigned char'
>> >>> 1>  c:\program files (x86)\microsoft visual studio
>> >>> 1> 14.0\vc\include\xlocale(2322): note: see reference to function
>> >>> 1> template instantiation 'char
>> >>> 1> std::_Maklocbyte<_Elem>(_Elem,const std::_Locinfo::_Cvtvec &)'
>> >>> 1> being compiled
>> >>>
>> >>> Now, I know what the problem is, VS2015 is very clear about it,
>> >>> but how can I trace the fault. Where in -my code- did I go wrong?
>> >>
>> >> Since C does not have templates, you might start by asking in a
>> >> group related to the language you are using.
>> >
>> > And when you post in a C++ group, be sure to show them the code that
>> > causes the error.
>>
>> He's asking "Where in -my code- did I go wrong?", so he doesn't know
>> which code caused the error.
>>
>> If the above message list is complete, I see his point - the only line
>> numbers given are for the xlocale file, which is presumably not his
>> code. There should be an error message identifing the line on which an
>> attempt was made to instantiate that template with types that
>> triggered this warning. There doesn't seem to be any such message
>> (assuming the message list is complete).
>>
>
> Problem is that it is probably bug in the compiler.
>

Yes, your *first* mistake was using a compiler built by Microsoft!!!

-- 

numerist at aquaporin4 dot com

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

VS2015 esamiira@gmail.com - 2015-06-17 09:50 -0700
  Re: VS2015 Barry Schwarz <schwarzb@dqel.com> - 2015-06-17 10:36 -0700
    Re: VS2015 Keith Thompson <kst-u@mib.org> - 2015-06-17 11:05 -0700
      Re: VS2015 James Kuyper <jameskuyper@verizon.net> - 2015-06-17 14:34 -0400
        Re: VS2015 Melzzzzz <mel@zzzzz.com> - 2015-06-17 20:44 +0200
          Re: VS2015 "Charles Richmond" <numerist@aquaporin4.com> - 2015-06-17 16:18 -0500
            Re: VS2015 jacobnavia <jacob@jacob.remcomp.fr> - 2015-06-19 08:12 +0200
              Re: VS2015 Paul N <gw7rib@aol.com> - 2015-06-19 07:39 -0700
                Re: VS2015 jacobnavia <jacob@jacob.remcomp.fr> - 2015-06-19 17:59 +0200
                Re: VS2015 raltbos@xs4all.nl (Richard Bos) - 2015-06-20 09:16 +0000
  Re: VS2015 Richard Heathfield <rjh@cpax.org.uk> - 2015-06-17 19:07 +0100

csiph-web